Skip to content

Instantly share code, notes, and snippets.

@AmauryLugdu
AmauryLugdu / app.js
Created October 4, 2019 11:21
decouverte de node.js
process.stdin.resume()
process.stdin.setEncoding('utf8')
console.log('How old are you ?')
process.stdin.on('data', (number) => {
if (isNaN(number)){
console.log ("type a number please")
}
else{
if(number<99 && number>0){
import * as assert from 'assert';
class BankCustomer{
private name:string;
private pinInput: string;
constructor(name:string, pinInput:string){
@AmauryLugdu
AmauryLugdu / gist:89d518e3d9fab2a02034d3ddfabcc897
Created September 30, 2019 11:39
Quete WildCodeSchool Poo1_2
class Person{
name:string;
age:number;
constructor(name: string, age: number){
this.name = name;
this.age = age;
}
@AmauryLugdu
AmauryLugdu / quete.ts
Created September 30, 2019 09:41
Quete WildCodeSchool typescript_1
function hello(name:string) {
console.log("Hello " + name);
}
var firstName:string = "bob";
hello(firstName);
hello(firstName + " marley");
function concat(a:string, b:string) {
@AmauryLugdu
AmauryLugdu / gist:8c5b7f8da0fed24cdbb7d779f705dfd2
Created September 20, 2019 07:38
Maitriser Unix en mode avancé
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="/Users/emilybremond/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
22 ls
23 cat people
24 grep "Lubomir Frank" people | grep "Pape Kantarci" | grep "Alberto Pedersen" | grep "Joe Germuska" | grep "Marharyta Willmott" | grep "Jeremy Bowers" | grep "Darae Charlos" | grep "Jacqui Maher" people
25 grep "Lubomir Frank" people | grep "Pape Kantarci" | grep "Alberto Pedersen" | grep "Joe Germuska" | grep "Marharyta Willmott" | grep "Jeremy Bowers" | grep "Darae Charlos" | grep "Jacqui Maher" people > suspect3
26 ls
27 cat suspect3
28 rm suspect3
29 ls
30 cat membership
31 cat memberships
@AmauryLugdu
AmauryLugdu / javascript.json
Last active September 14, 2019 18:12
Creation de Snippets
{
"Simple Console Log": {
"prefix": "csl",
"body": "console.log($1);",
"description": "Simple Console Log"
},
"Array methods": {
"prefix": "arrmtd",
@AmauryLugdu
AmauryLugdu / indexMovie.html
Created September 13, 2019 08:32
JavaScript les bases du langage
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<body>
<script src="myFavMovie.js"></script>
</body>
</html>
@AmauryLugdu
AmauryLugdu / history
Created September 12, 2019 11:16
terminal 2
536 homebrew -get install -y tree wget unzip
537 brew install wget tree unzip
538 cd /users/emilybremond/quetes/shell
539 wget https://github.com/bhubr/bhubr.github.io/raw/master/wild/planets.zip
540 unzip planets.zip
541 ls
542 cd planet
543 cd planets
544 ls
545 mkdir -p telluric/gas-giants/dwarf-planets
@AmauryLugdu
AmauryLugdu / index.html
Created September 11, 2019 10:42
08 CSS Flexbox
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name='viewport'
content='width=device-width, initial-scale=1.0, maximum-scale=1.0' />
<title>Find the precious!</title>
<link rel="stylesheet" href="style.css">
</head>