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
.picture { | |
opacity: 0.6; | |
} | |
.reward { | |
text-align: center; | |
font-size: 3em; | |
font-family: 'Arial Narrow Bold', sans-serif; | |
background-color: antiquewhite; | |
opacity: 0.6; |
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
.picture { | |
opacity: 0.6; | |
} | |
.reward { | |
text-align: center; | |
font-size: 3em; | |
font-family: 'Arial Narrow Bold', sans-serif; | |
background-color: antiquewhite; | |
opacity: 0.6; |
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="Lord of the rings" content="Capture all the orcs, goblins and balrogs"/> | |
<title>FindthePrecious</title> | |
</head> | |
<body> | |
<header><h1>Find the precious</h1></header> |
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
157 cd ~F540 | |
158 pwd | |
159 cd github | |
160 cd | |
161 cd clmystery-master | |
162 ls | |
163 cd | |
164 pwd | |
165 cd clmystery-master | |
166 cat instructions |
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('How old are you ? ') | |
process.stdin.on('data', (age) => { | |
console.log('You are ' + age.trim() + ' years old ') | |
if (age > 99){ | |
console.log('Too old!!') | |
} 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
body{ | |
background-color: whitesmoke; | |
} | |
.container{ | |
max-width: 100vh; | |
max-height: 100vh; | |
} | |
.row{ | |
margin: 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
Select * from wizard where birthday between '1975-01-01' and '1985-31-12'; | |
INSERT INTO `wild_db_quest`.`wizard` (`firstname`, `lastname`, `birthday`, `birth_place`, `biography`, `is_muggle`) VALUES ('harry', 'potter', '1980-07-31', 'london', '', '0'); | |
INSERT INTO `wild_db_quest`.`wizard` (`firstname`, `lastname`, `birthday`, `birth_place`, `biography`, `is_muggle`) VALUES ('hermione', 'granger', '1979-09-19', '', 'Friend of Harry Potter', '0'); | |
INSERT INTO `wild_db_quest`.`wizard` (`firstname`, `lastname`, `birthday`, `birth_place`, `biography`, `is_muggle`) VALUES ('ron', 'weasley', '1980-03-01', '', 'Best friend of Harry', '0'); | |
INSERT INTO `wild_db_quest`.`wizard` (`firstname`, `lastname`, `birthday`, `birth_place`, `biography`, `is_muggle`) VALUES ('ginny', 'weasley', '1981-08-11', '', 'Sister of Ron and girlfriend of Harry', '0'); | |
INSERT INTO `wild_db_quest`.`wizard` (`firstname`, `lastname`, `birthday`, `birth_place`, `biography`, `is_muggle`) VALUES ('fred', 'weasley', '1978-04-01', '', '', '0'); | |
INSE |
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
update school set country='Sweden' where id=3; | |
+----+----------------------------------------------+----------+----------------+ | |
| id | name | capacity | country | | |
+----+----------------------------------------------+----------+----------------+ | |
| 1 | Beauxbatons Academy of Magic | 550 | France | | |
| 2 | Casteloburgo | 380 | Brazil | | |
| 3 | Durmstrang Institute | 570 | Sweden | | |
| 4 | Hogwarts School of Witchcraft and Wizardry | 450 | United Kingdom | | |
| 5 | Ilvermorny School of Witchcraft and Wizardry | 300 | USA | |
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 express = require('express'); | |
const server = express(); | |
const port = 3000; | |
// A route answering the url /api/movies which sends as information a string containing "All films" | |
server.get('/api/movies', function(req, res) { | |
res.end('All films'); | |
}); |
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 connection = require('./conf'); | |
const express = require('express'); | |
const app = express(); | |
const port = 3000; | |
app.get('/api/movies', (req, res) => { | |
connection.query('SELECT * from movie', (err, results) => { | |
if (err) { | |
console.log(err) | |
res.status(500).send('Error lors de la récupération des movies'); |
OlderNewer