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
| <?php | |
| $firstMessage = '0@sn9sirppa@#?ia\'jgtvryko1'; | |
| function decodeFirstMessage($string) { | |
| $keyNumber = strlen($string) / 2; | |
| $array = str_split($string); | |
| $subString = implode(array_splice($array, 5, $keyNumber)); | |
| $speCarac = str_replace('@#?', ' ', $subString); |
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
| [claradesp@Air-de-Clara-2] ~ $ pwd | |
| /Users/claradesp | |
| [claradesp@Air-de-Clara-2] ~ $ cd pictures/ | |
| [claradesp@Air-de-Clara-2] ~/pictures $ cd .. | |
| [claradesp@Air-de-Clara-2] ~ $ pwd | |
| /Users/claradesp | |
| [claradesp@Air-de-Clara-2] ~ $ cd /bin | |
| [claradesp@Air-de-Clara-2] /bin $ cd ../Users/claradesp | |
| [claradesp@Air-de-Clara-2] ~ $ cd /usr/bin/ | |
| [claradesp@Air-de-Clara-2] /usr/bin $ ls |
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 application status without any filter | |
| GET https://http-practice.herokuapp.com/wilders | |
| ### GET application status with page number and language filters | |
| GET https://http-practice.herokuapp.com/wilders?page=4&language=Java | |
| ### POST wilder with url encoded method | |
| POST https://http-practice.herokuapp.com/wilders | |
| Content-Type: application/x-www-form-urlencoded |
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 http = require("http"); | |
| const url = require("url"); | |
| const port = 8001; | |
| const requestHandler = (request, response) => { | |
| console.log(request.url); | |
| const parsedUrl = url.parse(request.url, true); | |
| const parsedUrlQuery = parsedUrl.query; | |
| console.log(parsedUrlQuery); | |
| if (parsedUrlQuery.name && parsedUrlQuery.city) { |
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 app = express(); | |
| const port = 3000; | |
| app.listen(port, err => { | |
| if (err) { | |
| throw new Error("Something bad happened..."); | |
| } | |
| console.log(`Server is listening on ${port}`); |
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 Wizardry', '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 id, firstname, lastname, birthday, birth_place, biography, is_muggle | |
| 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 | |
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"> | |
| <title>Find the precious!</title> | |
| <link rel="stylesheet" href="style.css"> | |
| </head> | |
| <body> | |
| <nav> | |
| <ul> |
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 movieTitle = 'Las Vegas Parano'; | |
| const realisedBy = 'Terry Gilliam'; | |
| const releaseDate = '1998'; | |
| alert('Mon film favori est ' + movieTitle + ', réalisé par ' + realisedBy + ' en ' + releaseDate +'!'); |
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="description" content="A legendary Odyssey where you'll have to create your army, cloaking yourself with special friends, | |
| goblins, orcs, dwarfs and wizards."> | |
| <meta name="author" content="Clarade"> | |
| <title>Find the Precious</title> | |
| </head> |