Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

Florence LG Florencelg

🏠
Working from home
Block or report user

Report or block Florencelg

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@Florencelg
Florencelg / index.html
Last active Aug 24, 2018
Find The Precious - maquette html
View index.html
<!Doctype html>
<html lang="fr">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" media="screen" href="main.css" />
<script src="main.js"></script>
<title>Find The Precious </title>
@Florencelg
Florencelg / index.html
Last active Aug 24, 2018
Find The Precious - intregration -
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Test image au survol</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" media="screen" href="style.css" />
<script src="main.js"></script>
@Florencelg
Florencelg / index.html
Last active Aug 27, 2018
Grand Œil sur sa tour de Barad-Dûr
View index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Grand Œil</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
<link rel="stylesheet" type="text/css" media="screen" href="style.css" />
View Linux - Terminal 1
wilder22@denethor:~$ pwd
/home/wilder22
wilder22@denethor:~$ cd~
La commande « cd~ » n'a pas été trouvée, voulez-vous dire :
commande « cdv » du deb codeville
commande « cd5 » du deb cd5
commande « cde » du deb cde
commande « cdb » du deb tinycdb
View Variable en PHP
<? php
$titleMovie = "Indiana Jones and the Last Crusade";
$movieView = "movie view";
$dateMovie = 1989;
$noteMovie = 8.3;
echo "$titleMovie <br/> $movieView <br/> Release date $dateMovie <br/> Note of movie $noteMovie ";
?>
View Les chaînes de caractères en PHP
<?php
$message1 ="0@sn9sirppa@#?ia'jgtvryko1";
$message2 ="q8e?wsellecif@#?sel@#?setuotpazdsy0*b9+mw@x1vj";
$message3 ="aopi?sgnirts@#?sedhtg+p9l!";
$longeurChaine = strlen($message1);
$chiffreCle = $longeurChaine/2;
$sousChaine = substr ($message1,5,$chiffreCle);
$sousChaine =str_replace(array('@','#','?'),' ',$sousChaine);
@Florencelg
Florencelg / tableaux et boucles en php
Created Sep 13, 2018
Les tableaux et boucles en php
View tableaux et boucles en php
<?php
$movies = [
'Indiana Jones and the Kingdom of the Crystal Skull' => ['Harrison Ford','Cate Banchett','Karen Allen'],
'Indiana Jones and the Last Crusade' => ['Harrison Ford','Sean Connery','Denholm Elliott'],
'Indiana Jones and the Temple of Doom' => ['Harrison Ford','Kate Capshaw','Jonathan Ke Quan']
];
foreach ($movies as $movie => $actor){
@Florencelg
Florencelg / conditions PHP
Created Sep 15, 2018
PHP procédural - Les conditions
View conditions PHP
<?php
$weapons = ['fists', 'whip', 'gun'];
$opponentWeapon = $weapons[rand(0,2)]; // Cela permet de choisir une arme de manière aléatoire.
$indyWeapon = $weapons;
if ($opponentWeapon == $weapons[0]){
$indyWeapon = $weapons [2];
}elseif ($opponentWeapon == $weapons [1]){
$indyWeapon = $weapons [0];
}else{
@Florencelg
Florencelg / index.php
Created Sep 16, 2018
Les fonctions avec PHP
View index.php
<?php
$animal= ['singe', 'loup'];
$chose = [' à la lune', 'au feux'];
function writeSecretSentence($parametre_1,$parametre_2)
{
return $parametre_1." s'incline face ".$parametre_2;
}
echo writeSecretSentence($animal[0],$chose[1]);
?>
@Florencelg
Florencelg / index.php
Last active Sep 18, 2018
Les formulaires en PHP
View index.php
<?php
if($_POST)
{
//not empty
//atleast 6 characters long
$errors = array();
//start validation
if(empty($_POST['firstName']))
{
You can’t perform that action at this time.