Skip to content

Instantly share code, notes, and snippets.

View krez69's full-sized avatar
🏠
Working from home

Walid krez69

🏠
Working from home
View GitHub Profile
@krez69
krez69 / index.html
Last active September 4, 2019 15:06
quete5
<! DOCTYPE html>
< html lang = " en " >
< tête >
< meta charset = " UTF-8 " >
< title > Attrapez-les tous! </ title >
< link rel = " stylesheet " href = " style.css " type = " text / css " >
</ head >
< body >
< section >
< img class = " hover-effect " src = " http://images.innoveduc.fr/integration_parcours/css/css_selectors_props/hobbit-house.jpg " alt = " Hobbit house " >
@krez69
krez69 / index.html
Last active September 8, 2019 19:37
quete 6
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Find the precious!</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<nav>
<ul>
@krez69
krez69 / commande ls,cd,pwd,
Created September 10, 2019 08:24
Terminal 1 linux
krez@DESKTOP-BGVA5DU:~$ ls
krez@DESKTOP-BGVA5DU:~$ pwd
/home/krez
krez@DESKTOP-BGVA5DU:~$ cd Images
-bash: cd: Images: No such file or directory
krez@DESKTOP-BGVA5DU:~$ pwd
/home/krez
krez@DESKTOP-BGVA5DU:~$ cd Images
-bash: cd: Images: No such file or directory
krez@DESKTOP-BGVA5DU:~$ ls
mkdir real fictional inhabited
cd real
mkdir telluric gas-giants dwarf-planets
mv ../mercury.jpeg ../mars.jpeg ../venus.jpeg ../earth.jpeg telluric/
mv ../jupiter.jpeg ../saturn.jpeg ../uranus.jpeg ../neptune.jpeg gas-giants/
mv ../arrakis.jpeg ../coruscant.jpeg ../cybertron.jpeg ../pluto.jpeg dwarf-planets/
cd dwarf-planets/
mv arrakis.jpeg coruscant.jpeg cybertron.jpeg ../../fictional/
mv ../../real/telluric/earth.jpeg ../../inhabited/
mv ../../fictional/arrakis.jpeg ../../fictional/coruscant.jpeg ../../fictional/cybertron.jpeg ../../inhabited/
@krez69
krez69 / index.html
Created September 12, 2019 07:54
Responsive mobile/desktop
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Find the precious!</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<nav>
<ul>
/* responsive desktop*/
@media screen and (min-width: 961px) {
body{
margin: 0 auto;
width: 100%;
}
ul{
<? php
$message1 = "0@sn9sirppa@#?ia'jgtvryko1";
$message2 = "q8e?wsellecif@#?sel@#?setuotpazdsy0*b9+mw@x1vj";
$message3 = "aopi?sgnirts@#?sedhtg+p9l!";
$number1 = strlen($message1) / 2;
$number2 = strlen($message2) / 2;
$number3 = strlen($message3) / 2;
<?php
set_time_limit(5);
$movieIndiana = [
'Indiana Jones et le Royaume du Crâne de Cristal' => ['broly', 'goku','vegeta'],
'Indiana Jones et la Dernière Croisade' => ['bulma','picolo','trunks'],
'Indiana Jones et le Temple maudit' => ['yamcha','krilin','sangohan'],
];
foreach ($movieIndiana as $movie=>$actors){
echo "Dans le film $movie,".' ';
<?php
set_time_limit(5);
$weapons = ['fists', 'whip', 'gun'];
$opponentWeapon = $weapons[rand(0,2)]; // Cela permet de choisir une arme de manière aléatoire.
// TODO
$indyWeapon = '';
<?php
function writeSecretSentence(string $name1, string $name2) : string
{
$phrasing = $name1 . " s'incline face à " . $name2;
return $phrasing;
}
$phrasing = writeSecretSentence('dog','moon');
echo $phrasing;