Skip to content

Instantly share code, notes, and snippets.

View TheCodingLady's full-sized avatar

Pearl Alexandra TheCodingLady

  • France
View GitHub Profile
@TheCodingLady
TheCodingLady / about.ejs
Created April 18, 2018 07:34
QUETE-NodeJS-HTTP-server-usingEJS
<!-- views/pages/about.ejs -->
<!DOCTYPE html>
<html lang="en">
<head>
<% include ../partials/head %>
</head>
<body class="container">
<header>
@TheCodingLady
TheCodingLady / index.html
Created April 17, 2018 06:26
QUETE1-Firebase-SDK
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Quete Walking Dead</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
@TheCodingLady
TheCodingLady / app.js
Last active April 15, 2018 12:28
NodeJS-quête1
process.stdin.resume()
process.stdin.setEncoding('utf8')
console.log('What\'s your age ? ')
process.stdin.on('data', (number) => {
if (!isNaN(number) && number < 99) {
console.log('You were born in ' + (2018 - number))
process.exit()
} else {
@TheCodingLady
TheCodingLady / QUETE-JS-ES6-part4.js
Last active March 31, 2018 11:33
js class, constructor, etc
class Monster {
constructor(options) {
this.name = name;
this.health = 100;
}
heal() {
return this.health += 10;
}
}
class Monster {
constructor (name, health, ...args) {
this.name = 'Nessie'
this.health = 100;
this.size = 90;
this.color = 'purple';
this.habitat = 'water';
this.exterior = 'hairless';
this.food = 'plankton';
}
@TheCodingLady
TheCodingLady / QUETE-JS-ES6-part2.js
Last active March 29, 2018 10:17
Spread syntax, rest param and default value
const address = {
city: "Lyon",
state: "FR",
zip: 69001
};
const sportList = ['Football', 'BasketBall'];
const otherSportList = ['Boxe', 'Judo'];
function display(address = {city: 'La Loupe'}, sportList, ...rest) {
@TheCodingLady
TheCodingLady / Quête-Final Scrum
Last active March 26, 2018 11:08
Letter to client and stakeholders
To:
bettencourt.liliane@loreal.com
Cc:
laurentlucas@gmail.com
paulmorea@gmail.com
maxime.cornuau@wcs.com
victor.leduc@gmail.com
martin.bonadieu@gmail.com
@TheCodingLady
TheCodingLady / pseudocode.txt
Last active March 26, 2018 16:55
QUETE-PSEUDOCODE
Variables
nombreSaisie
resultat <- "Bienvenue à la wild
DEBUT
Afficher "Taper un nombre de 1 à 10, SVP: "
Demander nombreSaisie
nombreSaisie <- n
r <- n - 1
Afficher resultat
const profile = {
name: 'Alex',
getName: function () {
return () => this.name;
}
}
console.log(profile.getName()());
let ville = "La Loupe";
let âge = 40;
const dob = "27th February 1978";
let sentence = `J'habite à ${ville}, j'ai ${âge} ans et je suis née le ${dob}.`
console.log(sentence)