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
function load() { | |
document.querySelector(".message").textContent = | |
"Le texte est chargΓ© c'est bon"; | |
//document.querySelector(".loading").style.display = "none"; | |
document.querySelector(".loading").remove(); | |
document.querySelector("h1").style.backgroundColor = "yellow"; | |
const text = document.querySelector("h1").textContent; | |
console.log(text); | |
/* |
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
// https://github.com/mariadb-corporation/mariadb-connector-nodejs/blob/master/documentation/connection-options.md | |
require("dotenv").config(); | |
const mariadb = require("mariadb"); | |
(async () => { | |
let conn; | |
if (process.env.APP_ENV == "heroku") { | |
conn = await mariadb.createConnection( |
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 | |
// For demonstration purpose only | |
// API using CURL | |
// Get | |
$ch = curl_init(); |
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 | |
// For demonstration purpose only | |
// Datetime | |
// http://php.net/manual/en/class.datetime.php | |
$date = new Datetime; | |
// 1. Date object |
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 | |
// For demonstration purpose only | |
// Tester de trouver les mots de passe sur https://crackstation.net | |
$password = 'webstart'; | |
// MD5 | |
echo md5($password); |
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 | |
// For demonstration purpose only | |
// Arrays | |
$names = ['clement', 'tomy', 'jacques']; | |
print_r($names); | |
echo $names[0]; | |
$people = [ |
NewerOlder