This file contains hidden or 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 | |
$nb_annees = 20; // NE MODIFIEZ QUE CE PARAMETRE PUIS CHARGEZ CETTE PAGE | |
// A partir de cet endroit, toute modification est à vos risques et périls ;D | |
$nb_date_palindrome = 0; | |
$nb_test_palindrome = 0; | |
$nb_tests_max = $nb_annees * 365; | |
function microtime_float() { | |
list($usec, $sec) = explode(" ", microtime()); |
This file contains hidden or 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 -S localhost:8080 |
This file contains hidden or 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 | |
session_start(); | |
// Include vendor autoload | |
include 'vendor/autoload.php'; | |
// Your website name, or URL. It will be displayed in Google Authenticator | |
define("WEBSITE_URL", 'exampleWebsite'); | |
// The username of the user | |
$username = "username"; |
This file contains hidden or 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
$ composer update |
This file contains hidden or 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
{ | |
"name": "yourApp", | |
"require": { | |
"mv/laravel-google-authenticator": "dev-master" | |
}, | |
"autoload": { | |
"classmap": [ | |
"vendor/mv/laravel-google-authenticator", | |
"vendor/mv/laravel-google-authenticator/library" | |
] |
This file contains hidden or 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
Show hidden characters
{ | |
"dictionary": "Packages/Language - French/fr-moderne.dic", | |
"extensions": | |
[ | |
"tex" | |
], | |
"spell_check": true, | |
"auto_complete": true | |
} |
This file contains hidden or 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 | |
$PolarChart = new Chart('polar', 'examplepolar'); | |
$PolarChart->set('data', array(20, 55, 16, 30, 42)); | |
$PolarChart->set('legend', array('A', 'B', 'C', 'D', 'E')); | |
echo $PolarChart->returnFullHTML(); | |
?> |
This file contains hidden or 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 | |
$RadarChart = new Chart('radar', 'exampleradar'); | |
$RadarChart->set('data', array(20, 55, 16, 30, 42)); | |
$RadarChart->set('legend', array('A', 'B', 'C', 'D', 'E')); | |
echo $RadarChart->returnFullHTML(); | |
?> |
This file contains hidden or 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 | |
$BarChart = new Chart('bar', 'examplebar'); | |
$BarChart->set('data', array(array(2, 10, 16, 30, 42), array(42, 30, 16, 10, 2))); | |
$BarChart->set('legend', array('01/01', '01/02', '01/03', '01/04', '01/05')); | |
// We don't want to use the x-axis for the legend so we specify the name of each dataset | |
$BarChart->set('legendData', array('Annie', 'Marc')); | |
$BarChart->set('displayLegend', true); | |
echo $BarChart->returnFullHTML(); | |
?> |
This file contains hidden or 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 | |
$DoughnutChart = new Chart('doughnut', 'exampleDoughnut'); | |
$DoughnutChart->set('data', array(2, 10, 16, 30, 42)); | |
$DoughnutChart->set('legend', array('Work', 'Eat', 'Sleep', 'Listen to music', 'Code')); | |
$DoughnutChart->set('displayLegend', true); | |
// We want to display percentages | |
$DoughnutChart->set('legendIsPercentage', true); | |
echo $DoughnutChart->returnFullHTML(); | |
?> |