Skip to content

Instantly share code, notes, and snippets.

View SandySanSan's full-sized avatar
💭
Wild Code School 2019

SandyP SandySanSan

💭
Wild Code School 2019
View GitHub Profile
@SandySanSan
SandySanSan / index.html
Last active January 10, 2019 23:18
FindThePrecious - Structure html homepage
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Meta -->
<meta charset="UTF-8" />
<title>FindThePrecious.com</title>
</head>
<body>
<!DOCTYPE html>
<html lang="en">
<head>
<link href="style.css"rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Berkshire+Swash" rel="stylesheet">
</head>
<body>
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.
wilder@wilder-ThinkPad-T430s:~$ ls
Desktop Documents Downloads Music Pictures Public Templates Videos
wilder@wilder-ThinkPad-T430s:~$ ls .
Desktop Documents Downloads Music Pictures Public Templates Videos
wilder@wilder-ThinkPad-T430s:~$ ls Pictures
'Screenshot from 2019-02-25 15-44-45.png'
wilder@wilder-ThinkPad-T430s:~$ ls \home\wilder
wilder@wilder-ThinkPad-T430s:~$ tree
.
|-- Desktop
|-- Documents
|-- Downloads
|-- Music
|-- Pictures
| `-- Screenshot\ from\ 2019-02-25\ 15-44-45.png
|-- Public
|-- Templates
Début AchatBonbons (Argent, prixBonbon)
nombreBonbons <-0
Tant que Argent - PrixBonbon >= 0
nombreBonbons<-nombreBonbons+1
Argent<-Argent-prixBonbon
Fin tant que
Retourner nombreBonbons
Fin AchatBonbons
@SandySanSan
SandySanSan / film.js
Last active March 2, 2019 20:57
Découverte du langage Javascript
// Define some variables
const myFavouriteMovie = 'Inland Empire';
const director = 'David Lynch';
const date = 2006;
const message = myFavouriteMovie + ', réalisé par ' + director + ', est sorti en ' + date + '.';
// Display a popup
alert(message);
@SandySanSan
SandySanSan / bonjour.sh
Created March 2, 2019 20:52
Introduction au shell
#!/bin/bash
read -p 'Entrez votre nom : ' nom
echo "Bonjour $nom !"
1 clear
2 cat instructions
3 ls
4 cd mystery
5 ls
6 grep 'CLUE' crimescene
7 grep "Annabel" people
8 cd ..
9 cat hint1
10 cat hint2
let answer = prompt("Hey mon ami ! Tu aimes ça les patates ?");
if (answer === "Oui") {
for (let i = 0; i<8; i++) {
console.log("#".repeat(i));
}
} else {
console.log("Je vous sens comme tiraillé");
}