This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Document</title> | |
</head> | |
<body> | |
<form action="thanks.php" method="post"> | |
<div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mysql> SHOW DATABASES; | |
+--------------------+ | |
| Database | | |
+--------------------+ | |
| information_schema | | |
| mydata | | |
| mysql | | |
| performance_schema | | |
| sys | | |
| wild_db_quest | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mysql> SHOW TABLES; | |
+-------------------------+ | |
| Tables_in_wild_db_quest | | |
+-------------------------+ | |
| school | | |
| wizard | | |
+-------------------------+ | |
2 rows in set (0.00 sec) | |
mysql> SELECT * FROM wizard; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$weapons = ['fists', 'whip', 'gun']; | |
$opponentWeapon = $weapons[rand(0,2)]; | |
switch($opponentWeapon) { | |
case 0: | |
$indyWeapon = ($weapons[2]); | |
break; | |
case 1: | |
$indyWeapon = ($weapons[0]); | |
break; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$message1 = "0@sn9sirppa@#?ia'jgtvryko1"; | |
// var_dump($message1); | |
$messageKey = strlen($message1)/2; | |
// var_dump($messageKey); | |
$firstDecode = substr($message1, 5,$messageKey); | |
// var_dump($firstDecode); | |
$replaceDecode = str_replace('@#?',' ',$firstDecode); | |
// var_dump($replaceDecode); | |
$finalDecode = strrev($replaceDecode); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$films = ['Indiana Jones 5'=>2022,'Indiana Jhones et la royaume du crâne de cristal'=>2008,'Indiana Jhones et la Temples maudit'=>1984]; | |
// // var_dump($films); | |
asort($films); | |
// var_dump($films); | |
foreach($films as $movieName => $date) { | |
var_dump($date.'-'.$movieName.' '); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$films = [ | |
'Indiana Jones et la temple maudit' => ['Harrison Ford','Karen Allen','Pail Freeman'], | |
"Les aventuriers de l'arche perdue" => ['Harrison Ford','Kate Capshaw','Ke Huy Quan'], | |
'Indiana Jones et la dernière croisade' => ['Harrison Ford','Sean Connery','Alison Doody'] | |
]; | |
// var_dump($films); | |
foreach($films as $movie_title => $name_of_the_actor){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wilder@wilder-ThinkPad-T430s:~$ cd | |
wilder@wilder-ThinkPad-T430s:~$ ls | |
Bureau Images Musique planets.zip style | |
Documents LA mv Public Téléchargements | |
examples.desktop L.A OK quests Vidéos | |
helloui Modèles planets real2 | |
wilder@wilder-ThinkPad-T430s:~$ mkdir -p planets/real planets/fictional planets/inhabited | |
wilder@wilder-ThinkPad-T430s:~$ ls | |
Bureau Images Musique planets.zip style | |
Documents LA mv Public Téléchargements |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wilder@wilder-ThinkPad-T430s:~$ pwd | |
/home/wilder | |
wilder@wilder-ThinkPad-T430s:~$ cd .. | |
wilder@wilder-ThinkPad-T430s:/home$ pwd | |
/home | |
wilder@wilder-ThinkPad-T430s:/home$ cd .. | |
wilder@wilder-ThinkPad-T430s:/$ pwd | |
/ |