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
###GET Wilders | |
GET https://http-practice.herokuapp.com/wilders | |
###GET Wilders in JavaScript & page 1000000 | |
GET https://http-practice.herokuapp.com/wilders?langage=JavaScript&page=10 | |
###POST Wilders in JSON | |
POST https://http-practice.herokuapp.com/wilders | |
Content-Type: application/json |
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
mysql> INSERT INTO school (name, country, capacity) | |
-> VALUES ('Beauxbatons Academy of Magic', 'France', 550), | |
-> ('Castelobruxo', 'Brazil', 380), | |
-> ('Durmstrang Institute', 'Norway', 570), | |
-> ('Hogwarts School of Witchcraft and izardry', 'United Kingdom', 450), | |
-> ('Ilvermorny School of Witchcraft and Wizardry', 'USA', '300'), | |
-> ('Koldovstoretz', 'Russia', '125'), | |
-> ('Mahoutokoro School of Magic', 'Japan', '800'), | |
-> ('Uagadou School of Magic', 'Uganda', '350'); | |
Query OK, 8 rows affected (0.01 sec) |
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
mysql> SELECT * FROM wizard WHERE birthday BETWEEN '1975-01-01' AND '1985-12-31'; | |
+----+-----------+----------+------------+-------------+---------------------------------------+-----------+ | |
| id | firstname | lastname | birthday | birth_place | biography | is_muggle | | |
+----+-----------+----------+------------+-------------+---------------------------------------+-----------+ | |
| 1 | harry | potter | 1980-07-31 | london | | 0 | | |
| 2 | hermione | granger | 1979-09-19 | | Friend of Harry Potter | 0 | | |
| 4 | ron | weasley | 1980-03-01 | | Best friend of Harry | 0 | | |
| 5 | ginny | weasley | 1981-08-11 | | Sister of Ron and girlfriend of Harry | 0 | | |
| 6 | fred | weasley | 1978-04-01 | | | 0 | | |
| 7 | george | weasley | 1978-04-01 | | |
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; | |
} | |
tellMyName() { | |
console.log(`I am ${this.name}`); | |
} | |
tellMyAge() { | |
console.log(`I am ${this.age}`); |
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("./node_modules/cowsay"); | |
console.log(cowsay.say({ | |
text : "hello boy", | |
e : "oO", | |
T : "U " | |
})); |
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('What\'s your age ? (must be a number, and under 99)') | |
process.stdin.on('data', (text) => { | |
if (text <= 99 && text > 0) { | |
text = 2019 - text; | |
console.log('You are born in ' + text) | |
} else { | |
console.log('Please enter a valid value') |
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="fr"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>PHP quete 1</title> | |
<link href="css/style.css" rel="stylesheet" type="text/css" media="screen"> | |
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,700" rel="stylesheet"> | |
<meta content="IE=edge" http-equiv=X-UA-Compatible> | |
<meta content="width=device-width, initial-scale=1" name="viewport"> |
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
/* hello-wilder.js */ | |
// Define some variables | |
let movieName = 'Interstellar'; | |
let releaseDate = 2014; | |
let director = 'Christopher Nolan' | |
const message = 'Mon film préféré, ' + movieName + ', réalisé par ' + director + ', est sorti en ' + releaseDate; | |
// Display a popup | |
alert(message); |
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="fr"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>findtheprecious.com</title> | |
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous"> |
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
455 wget https://github.com/bhubr/bhubr.github.io/raw/master/wild/planets.zip | |
456 unzip planets.zip | |
457 eog planets | |
458 mkdir real fictional inhabited | |
459 ls | |
460 cd planets/real | |
461 cd .. | |
462 rm -r shell | |
463 ls | |
464 mkdir shell |