Skip to content

Instantly share code, notes, and snippets.

View YaserMoamed's full-sized avatar

Yaser Mohamed YaserMoamed

View GitHub Profile
@YaserMoamed
YaserMoamed / 03 - Data handling
Last active March 13, 2020 13:12
Witch and Wizardry schools
mysql> INSERT INTO school (name, country, capacity)
-> VALUES ('Beuxbatons 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', 'US', 300),
-> ('Koldovstoretz', 'Russia', 125),
-> ('Mahoutokoro School of Magic', 'Japan', 800),
-> ('Uagadou School of Magic', 'Uganda', 350);
@YaserMoamed
YaserMoamed / Retrieving wizards
Last active March 13, 2020 13:56
02 - Retrieving information with SELECT
mysql> SHOW DATABASES;
+--------------------+
| Database |
+--------------------+
| information_schema |
| kaamelott |
| mysql |
| performance_schema |
| sys |
| wild_db_quest |
@YaserMoamed
YaserMoamed / My first application
Created March 10, 2020 11:54
My first application Node Js
process.stdin.resume();
process.stdin.setEncoding("utf8");
console.log("What's your age ? ");
process.stdin.on("data", text => {
if (text <= 99) {
console.log(Math.abs(text - 2020));
}
process.exit();
});
https://docs.google.com/spreadsheets/d/1L_UeBc-q8vCy0v0KXBWS9aUMRz9U5MNrV6NwKlBo2Vc/edit?usp=sharing
74 cd clmystery
75 cd clmystery-master
76 cd clmystery-master
77 head -n 20 people
78 ls
79 cd mystery
80 clear
81 head -n 20 people
82 grep "CLUE" crimescene
@YaserMoamed
YaserMoamed / FindThePrecious.html
Created January 13, 2020 19:42
this is the normal file without css
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>FindThePrecious.com</title>
</head>