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
interface User { | |
name:string, | |
age?: number, | |
birthday?: string, | |
} | |
const prettyPrintWilder = (users:User[]):void => { | |
console.log("########################"); | |
users.map((el:User) => { | |
console.log(`${el.name} is ${el.age} years old`); |
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 request = require("request"); | |
console.log("read API"); | |
request("https://swapi.co/api/people/1/", function(error, response, body) { | |
console.log("error:", error); // Print the error if one occurred | |
console.log("statusCode:", response && response.statusCode); // Print the response status code if a response was received | |
const luke = JSON.parse(body); | |
console.log("read API over"); | |
request(luke.films[0], function(error, response, bodyfilm) { |
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
const express = require("express"); | |
const connection = require("./conf"); | |
const app = express(); | |
const mysql = require("mysql"); | |
const port = 3000; | |
const bodyParser = require("body-parser"); | |
// Support JSON-encoded bodies | |
app.use(bodyParser.json()); | |
// Support URL-encoded bodies |
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
const express = require("express"); | |
const connection = require("./config"); | |
const app = express(); | |
const port = 3000; | |
const bodyParser = require("body-parser"); | |
// Support JSON-encoded bodies | |
app.use(bodyParser.json()); | |
// Support URL-encoded bodies | |
app.use( | |
bodyParser.urlencoded({ |
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
https://docs.google.com/forms/d/e/1FAIpQLSd92rQfniKh1lmpCOkHv15ANit5f7qybEmdOv8sam6gNXANNA/viewform | |
1B | |
2B | |
3B | |
4B |
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
1ère solution | |
Username : ' or 1=1-- | |
password : ' or 1=1-- | |
2ème solution | |
Username:admin | |
Password:wrongpassword' OR 'a'='a |
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
https://docs.google.com/forms/d/e/1FAIpQLSdpGGKZ3qwLkSVMmXHG5QZ9Sbznz6bDQM5nmw0Y5PY-62zijw/viewform | |
1A | |
2A | |
3A | |
4B |
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
https://google-gruyere.appspot.com/start | |
https://google-gruyere.appspot.com/GRUYEREINSTANCEID/deletesnippet?index=0 |
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
2. | |
Trouve l'expression régulière qui cherche la seule occurrence du deuxième prénom de Néo | |
(soit le A. de "Thomas A. Anderson). | |
----------------> /A[.]/gm | |
3. Trouve l'expression régulière qui cherche la date contenue dans le document. | |
---------------> /[0-9]{2}\/[0-9]{2}\/[0-9]{4}/gm |
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
mysql> SELECT t.name AS team, COUNT(p.id) AS number_of_player | |
FROM player p | |
JOIN team t | |
ON p.team_id = t.id | |
GROUP BY 1 | |
ORDER BY number_of_player DESC; | |
+------------+------------------+ | |
| team | number_of_player | | |
+------------+------------------+ | |
| Gryffindor | 36 | |
NewerOlder