Skip to content

Instantly share code, notes, and snippets.

View brendaMan's full-sized avatar
🎯
Focusing

Brenda brendaMan

🎯
Focusing
View GitHub Profile
@brendaMan
brendaMan / css
Created April 1, 2019 08:08
Gandalf
.picture {
opacity: 0.6;
}
.reward {
text-align: center;
font-size: 3em;
font-family: 'Arial Narrow Bold', sans-serif;
background-color: antiquewhite;
opacity: 0.6;
@brendaMan
brendaMan / CSS
Created April 1, 2019 08:11
Gandalf css
.picture {
opacity: 0.6;
}
.reward {
text-align: center;
font-size: 3em;
font-family: 'Arial Narrow Bold', sans-serif;
background-color: antiquewhite;
opacity: 0.6;
<!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>
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
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 {
@brendaMan
brendaMan / CSS
Created April 8, 2019 08:42
The great eye of Sauron - Bootstrap
body{
background-color: whitesmoke;
}
.container{
max-width: 100vh;
max-height: 100vh;
}
.row{
margin: 0%;
@brendaMan
brendaMan / All the files of wizards...
Last active May 21, 2019 13:57
Sql - Retrieving info with SELECT 0
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
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 |
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');
});
@brendaMan
brendaMan / Index.js
Created June 5, 2019 09:43
Express 2 - Express, SQL - MySQL, Postman
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');