Skip to content

Instantly share code, notes, and snippets.

Compte rendu du 13/04/2018
* A modifier
- Photos pour produits,
- Photos pour Conseils,
- Faire Google/Agenda.
- Regarder poyur les photos carousel : PurePower TrinityPLus(blonde).
* HomePage/
@Jules59
Jules59 / regex.txt
Last active April 9, 2018 09:40
regex
/La/g = La
/([0-9]{2})\/([0-9]{2})\/([0-9]{4})/g = 04/09/2017
/[ ][0-9]{1}\/[0-9]{2}/g = 9/10
/format[a-z]*/g = format(...)
/(\((.*?)\))/g = prend les "()" plus le texte à l'interieur
@Jules59
Jules59 / IMG_0418.jpg
Last active March 31, 2018 19:58
DNS.jpg
IMG_0418.jpg
@Jules59
Jules59 / IMG_0414.jpg
Last active March 31, 2018 14:49
sprint.png
IMG_0414.jpg
<?php
class Personn
{
//Attributs
private $firstName;
private $lastName;
private $address;
private $birthDate;
//Methodes
@Jules59
Jules59 / wcs.sql
Created March 19, 2018 16:22
SQL part2
-- MySQL dump 10.13 Distrib 5.7.21, for Linux (x86_64)
--
-- Host: localhost Database: wcs
-- ------------------------------------------------------
-- Server version 5.7.21-0ubuntu0.17.10.1
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
@Jules59
Jules59 / julien_l_wcs_lille.sql
Created March 18, 2018 09:34
julien_l_wcs_lille
-- MySQL dump 10.13 Distrib 5.7.21, for Linux (x86_64)
--
-- Host: localhost Database: julien_l_wcs_lille
-- ------------------------------------------------------
-- Server version 5.7.21-0ubuntu0.17.10.1
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
@Jules59
Jules59 / Bdd.jpg
Last active March 17, 2018 19:28
BDD
.
@Jules59
Jules59 / Index.php
Created March 16, 2018 10:39
fonction
<?php
function writeSecretSentence(string $parametre1, string $parametre2) : string {
return $parametre1 . "s'incline toujours au ping-pong face à " . $parametre2;
}
echo writeSecretSentence('Gaëtan', 'Julien');
@Jules59
Jules59 / conditions.php
Created March 12, 2018 22:05
les conditions
<?php
$weapons = ['fists', 'whip', 'gun'];
$opponentWeapon = $weapons[rand(0,2)];
if ($opponentWeapon === 'gun') {
$indyWeapon = 'whip';
}
elseif ($opponentWeapon === 'whip') {
$indyWeapon = 'fists';