-
Le cours : Cours
-
L'énoncé du TP :Énoncé
-
La correction du TP : Correction
-
Le Git du projet :Github
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# after appcleaner does his magic, do this | |
sudo rm -rf "/Library/Application Support/Paragon Software/" | |
sudo rm /Library/LaunchDaemons/com.paragon-software.installer.plist | |
sudo rm /Library/LaunchDaemons/com.paragon-software.ntfs.loader.plist | |
sudo rm /Library/LaunchDaemons/com.paragon-software.ntfsd.plist | |
sudo rm /Library/LaunchAgents/com.paragon-software.ntfs.notification-agent.plist | |
sudo rm -rf /Library/Filesystems/ufsd_NTFS.fs/ | |
sudo rm -rf /Library/PrivilegedHelperTools/com.paragon-software.installer | |
sudo rm -rf /Library/Extensions/ufsd_NTFS.kext/ |
Create the backend for a bootcamp directory website. The frontend/UI will be created by another team (future course). The html/css template has been created and can be used as a reference for functionality. All of the functionality below needs to be fully implmented in this project.
- List all bootcamps in the database
- Pagination
- Select specific fields in result
- Limit number of results
- Filter by fields
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const nbTours = 10; | |
const aleatoire = Math.round(Math.random() * 100); | |
console.log('nombre à trouver:', aleatoire); | |
for (let i = 0; i < nbTours; ++i) { | |
const joueur = prompt('devinez le nombre'); | |
if (joueur > aleatoire) { | |
alert('Plus petit'); | |
} else if (joueur < aleatoire) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Le JS-recall | |
const selectElementsStartingWithVowel = function(array) { | |
const vowels = ['a', 'e', 'i', 'o', 'u']; | |
function startingWithVowel(word) { | |
const firstChar = word.charAt(0); | |
return vowels.indexOf(firstChar) !== -1; | |
} | |
return array.filter(startingWithVowel); | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const mongo = require('mongodb').MongoClient; | |
const client = require('socket.io').listen(4000).sockets; | |
// Connect to mongo | |
mongo.connect('mongodb://127.0.0.1/mongochat', function(err, db){ | |
if(err){ | |
throw err; | |
} | |
console.log('MongoDB connected...'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/css/bootstrap.min.css" integrity="sha384-rwoIResjU2yc3z8GV/NPeZWAv56rSmLldC3R/AZzGRnGxQQKnKkoFVhFQhNUwEyJ" crossorigin="anonymous"> | |
<title>MongoChat</title> | |
<style> | |
#messages{height:300px;} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
async function notifyCustomer() { | |
const customer = await getCustomer(1); | |
console.log('Customer: ', customer); | |
if (customer.isGold) { | |
const movies = await getTopMovies(); | |
console.log('Top movies: ', movies); | |
await sendEmail(customer.email, movies); | |
console.log('Email sent...'); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<head> | |
<meta charset="UTF-8"> | |
<link href="https://fonts.googleapis.com/css?family=Lato:100,300,600" rel="stylesheet" type="text/css"> | |
<link href="https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css" rel="stylesheet" type="text/css"> | |
<title>Pig Game</title> | |
</head> | |
<body> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/********************************************** | |
*** GENERAL | |
**********************************************/ | |
* { | |
margin: 0; | |
padding: 0; | |
box-sizing: border-box; | |
} |
NewerOlder