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
| // -- Cibler des éléments | |
| // Comment cibler des éléments principaux ? | |
| const head = document.head; | |
| const body = document.body; | |
| // Comment cicler des éléments par balise/tag HTML ? | |
| // <div> | |
| // <p>...</p> | |
| // <p>...</p> |
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
| wilder@wilder-ThinkPad-T430s:~/mapfilter/array-map-filter$ npm test | |
| > quete-map-filter@1.0.0 test /home/wilder/mapfilter/array-map-filter | |
| > mocha | |
| filter - exercice 1 | |
| ✓ getPositiveNumbers | |
| filter - exercice 2 | |
| ✓ keepStarks |
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
| argent = réel a | |
| prix = réel b | |
| nombre bonbons = 0 | |
| début calcul nombre bonbons (entier) | |
| si argent > 0 et si prix > 0 | |
| tant que argent >= prix | |
| nombre bonbons ← nombre bonbons + 1 |
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
| class Person { | |
| constructor(name, age) { | |
| this.name = name; | |
| this.age = age; | |
| } | |
| get tellMyName() { | |
| return(`I am ${this.name}.`); | |
| } |
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
| var cowsay = require("cowsay"); | |
| console.log(cowsay.say({ | |
| text : "hello boy", | |
| e : "oO", | |
| T : "U " | |
| })); | |
| wilder@wilder-ThinkPad-T430s:~/quete 2 node js$ node index |
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
| process.stdin.resume() | |
| process.stdin.setEncoding('utf8') | |
| console.log('Quel âge as tu ? ') | |
| process.stdin.on('data', str => { | |
| parseInt(str); | |
| if (str <= 99 && str > 0) { | |
| console.log('Tu es né en ' + (2020 - str)); | |
| process.exit() | |
| } else { |
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
| JavaScript : | |
| https://buzut.net/maitrisez-les-differents-types-de-boucles-javascript/ | |
| article sur les différents types de boucles en JavaScript. | |
| L'auteur explique dans quels cas les utiliser et comment. | |
| CSS : | |
| https://css-tricks.com/the-slideout-footer/ | |
| article sur le slidout footer (le coulissement du footer). | |
| Astuces pour faire un slidout footer avec la stikcy position notamment. |
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
| * { | |
| box-sizing:border-box; | |
| } | |
| ul { | |
| width: 100%; | |
| background: black; | |
| padding: 2%; | |
| margin-bottom: 0; | |
| } |
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
| Emmanuelle,Mercier,Biarritz,France,2017,JavaScript | |
| Thierry,Alexandre,Biarritz,France,2017,JavaScript | |
| Édith,Turpin,Biarritz,France,2017,JavaScript | |
| Chantal,Caron,Biarritz,France,2017,JavaScript | |
| Pénélope,Paris,Biarritz,France,2017,JavaScript | |
| Christelle,Vallet,Biarritz,France,2017,JavaScript | |
| Daniel,Roy,Biarritz,France,2017,JavaScript | |
| Théodore,Regnier,Biarritz,France,2018,JavaScript | |
| Benjamin,Tanguy,Biarritz,France,2018,JavaScript | |
| Arthur,Bruneau,Biarritz,France,2018,JavaScript |
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
| wilder@wilder-ThinkPad-T430s:~/planets$ tree | |
| . | |
| ├── fictional | |
| │ ├── arrakis.jpeg | |
| │ ├── coruscant.jpeg | |
| │ └── cybertron.jpeg | |
| ├── inhabited | |
| │ ├── arrakis.jpeg | |
| │ ├── coruscant.jpeg | |
| │ ├── cybertron.jpeg |