This file contains 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
var http = require('http'); | |
http.createServer(function (req, res) { | |
res.writeHead(200, {'Content-Type': 'text/html'}); | |
var url = req.url; | |
if(req.url.includes("/display/")){ | |
const user = req.url.slice(9, req.url.length); | |
res.write(`Vous tentez d'afficher le profil de` + `$user`); | |
res.end(); |
This file contains 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" dir="ltr"> | |
<head> | |
<meta charset="utf-8"> | |
<title></title> | |
</head> | |
<body> | |
<h2>About us</h2> | |
</body> |
This file contains 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" dir="ltr"> | |
<head> | |
<meta charset="utf-8" /> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<title>Counter Redux</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<!-- Redux CDN --> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/redux/4.0.1/redux.min.js"></script> |
This file contains 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
> var cowsay = require("cowsay"); | |
undefined | |
> console.log(cowsay.say({text : "Hello boy", e : "o0", T : "U "})); | |
___________ | |
< Hello boy > | |
----------- | |
\ ^__^ | |
\ (o0)\_______ | |
(__)\ )\/\ | |
U ||----w | |
This file contains 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
process.stdin.resume() | |
process.stdin.setEncoding('utf8') | |
const thisYear = 2018; | |
let age = 0; | |
console.log('How old are you ? '); | |
process.stdin.on('data', (age) => { | |
if (age < 100 && age > 0 && age < thisYear) { |
This file contains 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" dir="ltr"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Base de JavaScript 1</title> | |
</head> | |
<body> | |
<script src="base_javascript1.js"></script> | |
</body> |
This file contains 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
let ask = prompt("Hey, mon ami ! Tu aimes ça les patates ?"); | |
if (ask == "Oui" || ask == "oui") { | |
var potatoes = ""; | |
for (var i = 1; i <= 7; i++) { | |
potatoes += "#"; | |
console.log(potatoes); | |
} | |
} | |
else if (ask == "Non" || ask == "non") { |
This file contains 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
VARIABLE | |
nombreSaisi | |
compteur <- 0 | |
DEBUT | |
Lire nombreSaisi | |
TANT QUE nombreSaisi < compteur | |
Retourner "Bienvenue à la Wild" |
This file contains 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
Objectif : Caculer le nombre de bonbons que tu peux acheter avec une somme d'argent donnée et un prix donné | |
Variables : | |
argent <== x (réel) | |
prix <== y (réel) | |
qté_bonbons <== 0 | |
Calcul : |
This file contains 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
marion@wilder-ThinkPad-T440p:~/Musique$ cd | |
marion@wilder-ThinkPad-T440p:~$ clear | |