Skip to content

Instantly share code, notes, and snippets.

View ClaireToulouse's full-sized avatar

ClaireToulouse

View GitHub Profile
<!DOCTYPE html>
<html lang=en>
<head>
<meta charset="UTF-8">
<title>FindThePrecious.com</title>
</head>
<body>
<header>
/*gandalf.css */
.gandalfpic {
position: absolute;
}
img {
opacity: 0.5;
}
@ClaireToulouse
ClaireToulouse / none
Last active September 4, 2018 12:11
Terminal commandes de base
wilder@wilder-ThinkPad-T430:~$ ls
Desktop Documents Downloads Music Pictures Public snap Templates Videos
wilder@wilder-ThinkPad-T430:~$ cd Documents
wilder@wilder-ThinkPad-T430:~/Documents$ ls -l
total 4
drwxr-xr-x 6 wilder wilder 4096 sept. 4 12:07 chalet
wilder@wilder-ThinkPad-T430:~/Documents$ cd ..
wilder@wilder-ThinkPad-T430:~$ cd ..
wilder@wilder-ThinkPad-T430:/home$ cd ..
wilder@wilder-ThinkPad-T430:/$ ls
formule sans boucle:
Début NbMaxBonbons (réel argent, réel prix)
si argent > 0 et prix >0
réel NbVirgule <= prix / argent
retourner ArrondiInferieur (NbVirgule)
sinon: retourner 0
Fin si
Fin NbMaxBonbons
@ClaireToulouse
ClaireToulouse / sauron.css
Last active September 6, 2018 12:20
sauron html
.square{
height: 6vw;
border: solid white;
}
.square:after{
content:"";
display: block;
padding-bottom: 100%;
}
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="utf-8">
<title>Premier programme</title>
</head>
<body>
<script src="premier-programme.js"></script>
</body>
</html>
@ClaireToulouse
ClaireToulouse / sauron integration 1.css
Last active September 13, 2018 14:27
Inetgration 1 fichier html
.hobbit {
opacity: 0.5;
}
.hobbit:hover {
opacity: 1;
}
.dead {
position: absolute;
let isPotatoLover = prompt("Hey mon ami ! Tu aimes ça les patates ?", 'oui ou non');
if ((isPotatoLover === 'oui') || (isPotatoLover ==='Oui')){
let hashTag ='#'
for (let count=0;count<7;count++) {
console.log(hashTag);
hashTag += '#';
}
}
else if ((isPotatoLover === 'non') ||(isPotatoLover==='Non')) {
process.stdin.resume()
process.stdin.setEncoding('utf8')
console.log('How old are you ?')
process.stdin.on('data', (num) => {
if (num>0 && num<100) {
function calcYear (num) {
let birthYear = 2018 - num;
return birthYear;
}
const cowsay = require('cowsay');
console.log(cowsay.say({
text: "hello boy",
e: "oO",
T: "U",
}));