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
| <!-- | |
| Definition | |
| OL : Order List | |
| UL : Unorder List | |
| LI : List Item | |
| --> | |
| <!-- Example --> | |
| <ul> | |
| <li>Text</li> |
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 | |
| // see : https://workflowy.com/#/7a7c77bb-b1f0-8b7a-1979-62ece0658eb8 | |
| // to put in functions.php | |
| if ( function_exists( 'add_theme_support' ) ) { | |
| // wp thumbnails (sizes handled in functions.php) | |
| add_theme_support('post-thumbnails'); | |
| // default thumb size | |
| set_post_thumbnail_size( 326, 100 ); // default Post Thumbnail dimensions | |
| } |
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 | |
| // see : http://www.prodeveloper.org/create-your-own-rewrite-rules-in-wordpress.html | |
| /***************** REWRITE RULES *****************/ | |
| /*** create Generic rewrite rules ***/ | |
| function createRewriteRules() { | |
| global $wp_rewrite; | |
| // add rewrite tokens | |
| $keytag = '%tag%'; |
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
| # Added by HackRepair.com, for Bad Bot protection | |
| # see : http://pastebin.com/5Hw9KZnW | |
| # http://pastebin.com/raw.php?i=5Hw9KZnW | |
| # update with : https://gist.github.com/davask/c96dfa24ef8d87f998c5 | |
| Options -Indexes | |
| RewriteEngine on | |
| #Block comment spammers, bad bots and some proxies | |
| RewriteCond %{REMOTE_HOST} 12.226.240.248 [OR] | |
| RewriteCond %{REMOTE_HOST} 24.111.102.26 [OR] |
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
| # to fix the issue between APC and WP Super Cache | |
| # unresolved yet | |
| # see : https://bugs.php.net/bug.php?id=59298 | |
| # http://wordpress.org/support/topic/supercache-internal-zend-error-wtf?replies=5 | |
| # Set a php5.ini or php.ini in the folder defined by PHPRC | |
| # see : http://www.ostraining.com/blog/coding/phpini-file/ | |
| # for shared server wait for the restart of it - see : http://support.godaddy.com/groups/web-hosting/forum/topic/restarting-apache-on-shared-server/ | |
| apc.filters = wp-cache-base | |
| apc.include_once_override = 0 |
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 | |
| $env = array( | |
| 'url' => array( | |
| '000.00.000.00'=>'ONLINE', | |
| '127.0.0.1'=>'OFFLINE', | |
| ), | |
| 'type' => array( | |
| 'dev' => 'DEVELOPMENT', | |
| 'www' => 'PRODUCTION' | |
| ) |
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 | |
| // put a timestamp after images as a variable to be sure to update the cache on the client side | |
| // see : http://php.net/manual/en/function.filemtime.php | |
| function getLastModification ($filename = __FILE__) { | |
| if (file_exists($filename)) { | |
| return filemtime($filename); | |
| } else { | |
| return '404'; | |
| } |
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
| // Extend an object to get the value of the first occurence of a specific index | |
| var _getInfoOf = function (obj, index, path, isIndexExists) { | |
| "use strict"; | |
| var prevPath = ''; | |
| if (typeof path !== 'undefined') { | |
| prevPath = path + '.'; | |
| } // END IF | |
| if (typeof isIndexExists === 'undefined') { | |
| isIndexExists = []; | |
| } // END IF |
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
| var language = { | |
| AD: "ANDORRA" | |
| AE: "UNITED ARAB EMIRATES" | |
| AF: "AFGHANISTAN" | |
| AG: "ANTIGUA AND BARBUDA" | |
| AI: "ANGUILLA" | |
| AL: "ALBANIA" | |
| AM: "ARMENIA" | |
| AN: "NETHERLANDS ANTILLES" | |
| AO: "ANGOLA" |
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
| for (var i=0; i<128; i++) { | |
| document.writeln ((i%32?'':'<p>') + i + ': ' + String.fromCharCode (i) + '<br>'); | |
| } |