Skip to content

Instantly share code, notes, and snippets.

@Orianne0605
Orianne0605 / Linux - Terminal 1 - Arborescence de répertoires - Orianne
Created September 10, 2019 16:05
Linux - Terminal 1 - Arborescence de répertoires - Orianne
To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.
orianne@orianne-SVF1521B6E:~$ ls
Bureau examples.desktop Musique Téléchargements
Documents Images Public Vidéos
Downloads Modèles snap
orianne@orianne-SVF1521B6E:~$ ls Téléchargements
orianne@orianne-SVF1521B6E:~$ pwd
/home/orianne
@Orianne0605
Orianne0605 / Find the previous
Created September 11, 2019 22:17
Find the previous
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="utf-8" />
<title>FindThePrevious.com</title>
</head>
<body>
<h1>FindThePrevious</h1>
@Orianne0605
Orianne0605 / Find the previous
Created September 12, 2019 07:36
Find the previous
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>FindThePrevious.com</title>
</head>
<body>
<header>
@Orianne0605
Orianne0605 / Linux terminal 2
Last active September 13, 2019 11:10
Linux terminal 2
orianne@orianne-SVF1521B6E:~/quetes$ tree
.
└── shell
├── planets
│   ├── fictional
│   │   ├── arrakis.jpeg
│   │   ├── coruscant.jpeg
│   │   └── cybertron.jpeg
│   ├── inhabited
│   │   ├── arrakis.jpeg
@Orianne0605
Orianne0605 / index.html
Created September 15, 2019 15:42
07 css responsive web design
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Find the precious!</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
@Orianne0605
Orianne0605 / index.html
Last active September 22, 2019 20:21
08 CSS Flexbox
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Find the precious!</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
@Orianne0605
Orianne0605 / Challenge.php
Created September 23, 2019 12:02
Challenge Variable PHP
<?php
$titleMovie = "Indiana Jones and the last crusade";
echo $titleMovie;
echo '<br>';
$movieSeen = false;
if ($movieSeen == false) {
echo "non";
} else {
echo "oui";
} ;
@Orianne0605
Orianne0605 / index.php
Created September 24, 2019 13:52
Chaînes de caractères PHP
<?php
$message1 = '0@sn9sirppa@#?ia\'jgtvryko1';
$message2 = 'q8e?wsellecif@#?sel@#?setuotpazdsy0*b9+mw@x1vj';
$message3= 'aopi?sgnirts@#?sedhtg+p9l!';
$cle1 = strlen($message1) /2;
$cle2 = strlen($message2) /2;
$cle3 = strlen($message3) /2;
@Orianne0605
Orianne0605 / Create the Indiana filmography
Created September 25, 2019 14:04
Les tableaux et boucles PHP
<?php
$movie = [
'Indiana Jones and the Kingdom of the Crystal Skull,' => ['Harrison Ford,', 'Karen Allen,', 'Cate Blanchett.'],
'Jones and the Temple of Doom,' => ['Harrison Ford,', 'Kate Capshaw,', 'Jonathan Ke Quan.'],
'Raiders of the Lost Ark,' => ['Harrison Ford,', 'Paul Freeman,','Karen Allen.']
];
foreach ($movie as $movie2[0] => $actor) {
echo 'Dans le film ' . $movie2[0] . ' les principaux acteurs sont ', implode(' ', $actor), "<br>";
@Orianne0605
Orianne0605 / Poings, fouet, pistolet
Created September 26, 2019 14:50
Les conditions en PHP
<?php
$weapons = ['fists', 'whip', 'gun'];
$opponentWeapon = $weapons[rand(0,2)];// Cela permet de choisir une arme de manière aléatoire.
echo "The opponent weapon is $opponentWeapon, " ;
if ($opponentWeapon == 'fists') {
$indyWeapon = 'gun';
}
elseif ($opponentWeapon =='gun') {
$indyWeapon = 'whip';