Skip to content

Instantly share code, notes, and snippets.

View TheCodingLady's full-sized avatar

Pearl Alexandra TheCodingLady

  • France
View GitHub Profile
class Animal {
function groupPhoto(photo: boolean);
console.log("Smiles, everybody, smiles!")
}
class Dog extends Animal {
patte: boolean = true;
}
class TerreNeuve extends Dog {
color: boolean = true;
}
@TheCodingLady
TheCodingLady / rules.html
Created March 20, 2018 10:48
laloupe-0218-tictactoe
<section>
<div class="container rules">
<div class="row rulesplace">
<div class="col-md-12">
<h4 class="rulestitle"><strong>The Rules of the Game</strong></h4>
<p>The object of Tic Tac Toe is to get three in a row. One player is known as X's and the other is O's. Players alternate placing their X's and O's on the game board until either player has three in a row, or all nine squares are filled. X's always go first, and in the event that no one has three in a row, the stalemate is called a cat game.</p>
</div>
</div>
</div>
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)
const profile = {
name: 'Alex',
getName: function () {
return () => this.name;
}
}
console.log(profile.getName()());
@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
@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) {
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-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;
}
}
@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 {