Skip to content

Instantly share code, notes, and snippets.

@madbrain67
madbrain67 / index.php
Created March 13, 2019 11:26
Les formulaires
<?php
$nom = '';
$prenom = '';
$email = '';
$phone = '';
$selected1 = '';
$selected2 = '';
$message = '';
$is_invalid_nom = '';
<?php
function writeSecretSentence(string $param1, string $param2)
{
return $param1.' s\'incline face à '.$param2;
}
$animaux = array('vache', 'tortue', 'chien');
$object = array('mur', 'lune', 'pierre');
<?php
$weapons = ['fists', 'whip', 'gun'];
$opponentWeapon = $weapons[rand(0, 2)]; // Cela permet de choisir une arme de manière aléatoire.
// TODO
switch ($opponentWeapon)
{
case 'fists':
<?php
$tableau = array(
(object) array('title' => 'Indiana Jones et le Royaume du Crâne de Cristal',
'acteurs' => array('Harrison Ford', 'Cate Blanchett', 'Karen Allen'),
),
(object) array('title' => 'Indiana Jones et la Dernière Croisade',
'acteurs' => array('Harrison Ford', 'Sean Connery', 'Denholm Elliott'),
),
(object) array('title' => 'Indiana Jones et le Temple maudit',
<?php
$a = array('@', '#', '?');
$b = array(' ', ' ', ' ');
$message1 = "0@sn9sirppa@#?ia'jgtvryko1";
$message2 = 'q8e?wsellecif@#?sel@#?setuotpazdsy0*b9+mw@x1vj';
$message3 = 'aopi?sgnirts@#?sedhtg+p9l!';
$msg1 = strlen($message1) / 2;
<?php
$title = 'Indiana Jones et la dernière croisade';
$vu = true;
$sortie = 1989;
$note = 8.2;
echo $title;
echo '<br>';
echo $vu;
#!/bin/bash
if [[ -z $1 ]]; then
echo Bonjour $(whoami) !
fi
if [[ $1 ]]; then
echo "Bonjour $1 $2 !"
fi
C:\laragon\www
λ ls
index.php
C:\laragon\www
λ pwd
/c/laragon/www
C:\laragon\www
λ cd
1 cd ..
2 ls
3 nano hint1
4 cd mystery/
5 ls
6 head -n 20 people
7 grep "CLUE" crimescene
8 grep "Annabel" people
9 head -n 173 streets/Mattapan_Street | tail -n 1
10 cd interviews/
@madbrain67
madbrain67 / css.css
Last active January 19, 2019 16:08
L'oeil de sauron
.container-fluid {
padding-top: 5%;
padding-bottom: 5%;
}
.row,
.no-gutters,
.col-1,
.col-2
.col-3,
.col-4