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
| sudo apt-get update | |
| sudo apt-get install build-essential chrpath libssl-dev libxft-dev -y | |
| sudo apt-get install libfreetype6 libfreetype6-dev -y | |
| sudo apt-get install libfontconfig1 libfontconfig1-dev -y | |
| cd ~ | |
| export PHANTOM_JS="phantomjs-2.1.1-linux-x86_64" | |
| wget https://github.com/Medium/phantomjs/releases/download/v2.1.1/$PHANTOM_JS.tar.bz2 | |
| sudo tar xvjf $PHANTOM_JS.tar.bz2 | |
| sudo mv $PHANTOM_JS /usr/local/share | |
| sudo ln -sf /usr/local/share/$PHANTOM_JS/bin/phantomjs /usr/local/bin |
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
| <iframe width="100%" height="500px" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://choromap.fr/view/3d49d6096811f43eca8f0be188975da3/gi2udr174vt42u9ku2ge97ldi2rwfc8773jodp2qfbzw2i96bt9/"></iframe> |
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 | |
| class MeteoVille { | |
| /** | |
| * Constructor | |
| * | |
| * @return void | |
| * @author Amaury Balmer | |
| */ | |
| function MeteoVille() { | |
| add_action( 'generate_rewrite_rules', array(&$this, 'rewriteRules') ); |
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
| Verifying that +henrilabarre is my blockchain ID. https://onename.com/henrilabarre |
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
| preg_match_all('/[\w]+/iu', $lib_cat, $matches2); | |
| //pour capter les mots avec plus de 4 lettres | |
| preg_match_all('/[\w]{4,}+/iu', $lib_cat, $matches2); |
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
| /*A mettre dans votre fichier functions.php de votre thème*/ | |
| /*remove contact form js and css*/ | |
| add_filter( 'wpcf7_load_js', '__return_false' ); | |
| add_filter( 'wpcf7_load_css', '__return_false' ); | |
| // include WPCF7 js+css on Contact page only | |
| add_action('wp_enqueue_scripts', 'add_wpcf7_scripts'); | |
| function add_wpcf7_scripts() { | |
| if (is_page(array('1126'))) { |
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
| function folderSize($dir){ | |
| $count_size = 0; | |
| $count = 0; | |
| $dir_array = scandir($dir); | |
| foreach($dir_array as $key=>$filename){ | |
| if($filename!=".." && $filename!="."){ | |
| if(is_dir($dir."/".$filename)){ | |
| $new_foldersize = foldersize($dir."/".$filename); | |
| $count_size = $count_size+ $new_foldersize; | |
| }else if(is_file($dir."/".$filename)){ |
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
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
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
| if($("#id")[0].checkValidity() == true) { | |
| } |