Skip to content

Instantly share code, notes, and snippets.

@Spidlace
Spidlace / departements-francais-limitrophe.php
Last active March 10, 2020 13:43
Départements français - Limitrophe
<?php
$list_departments = [];
$list_departments['01'] = array('38', '39', '69', '71', '73', '74');
$list_departments['02'] = array('08', '51', '59', '60', '77', '80');
$list_departments['03'] = array('18', '23', '42', '58', '63', '71');
$list_departments['04'] = array('05', '06', '13', '26', '83', '84');
$list_departments['05'] = array('04', '26', '38', '73');
$list_departments['06'] = array('04', '83');
$list_departments['07'] = array('26', '30', '38', '42', '43', '48', '84');
@Spidlace
Spidlace / OAuth.php
Last active December 18, 2015 16:49
Twitter - API 1.1 (date + tweet) If you want show one, two, three or more tweet, change in the document "date-tweet.php" the parameter "count" in tweets.
<?php
// vim: foldmethod=marker
/* Generic exception class
*/
if (!class_exists('OAuthException')) {
class OAuthException extends Exception {
// pass
}
}