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
console.log(`quel est votre age ?`); | |
process.stdin.on('data', (number) => { | |
if (!Number(number)) { | |
console.log('votre age doit etre un chiffre') | |
console.log(`quel est votre age ?`); | |
} | |
else if (number > 99) { | |
console.log('votre age ne peut depasser 99 ans') | |
console.log(`quel est votre age ?`); | |
} |
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
<html> | |
<head> | |
</head> | |
<body> | |
<script src="main.js"></script> | |
</body> | |
</html> |
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
1/ SELECT id_camp,localite FROM campus; | |
2/ SELECT nom,nom_camp FROM equipe JOIN campus ON equipe.id_camp = campus.id_camp; | |
3/ SELECT nom,fonction,nom_camp FROM equipe JOIN campus ON equipe.id_camp = campus.id_camp WHERE fonction = 'assistant' AND nom_camp IN ('Lorien','la comte'); | |
4/ SELECT nom,fonction,date_embauche FROM equipe WHERE NOT fonction='assistant' AND EXTRACT(YEAR FROM date_embauche) = 2017; | |
5/ SELECT nom FROM equipe WHERE nom LIKE '%r%a%'; |
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
1 : /La/g | |
2 : /[0-9]{2}\/[0-9]{2}\/[0-9]{4}/g | |
3 : / [0-9]\/[0-9]{2}/g | |
4 : / format[a-z]{1,}/gi | |
5 : /\([a-z ]{1,}\)/gi |
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 | |
class Personne | |
{ | |
//Attributs | |
private $firstName; | |
private $lastName; | |
private $address; | |
private $birthDate; | |
//Methodes |
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 dump 10.13 Distrib 5.7.21, for Linux (x86_64) | |
-- | |
-- Host: localhost Database: sql_part2 | |
-- ------------------------------------------------------ | |
-- 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 */; |
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
kl |
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 dump 10.13 Distrib 5.7.21, for Linux (x86_64) | |
-- | |
-- Host: localhost Database: aurelien_m_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 */; |
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 | |
function writeSecretSentence(string $param1,string $param2) : string { | |
return $param1 . " s'incline face a ". $param2; | |
} | |
echo writeSecretSentence ("param1", "param2"); | |
?> |
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 | |
if($_POST) | |
{ | |
$errors = array(); | |
if(empty($_POST['user_name'])) | |
{ | |
$errors['user_name'] = "<p style='color:red;'>remplis ton nom</p>"; |
NewerOlder