Animation created with wheelSpy.js https://github.com/idiotWu/wheelSpy
Forked from Dolphin Wood's Pen Chrome Browser .
| /** | |
| * Works everywere ( IE7+, FF, Chrome, Safari, Opera ) | |
| * Example: http://jsbin.com/afAQAWA/2/ | |
| */ | |
| .rotated-text { | |
| display: inline-block; | |
| overflow: hidden; | |
| width: 1.5em; | |
| } | |
| .rotated-text__inner { |
| <?php | |
| add_filter( 'get_the_archive_title', function ($title) { | |
| if ( is_category() ) { | |
| $title = single_cat_title( '', false ); | |
| } elseif ( is_tag() ) { | |
| $title = single_tag_title( '', false ); | |
| } elseif ( is_author() ) { | |
| $title = '<span class="vcard">' . get_the_author() . '</span>' ; | |
| } | |
| return $title; |
| // Enum for language codes | |
| var languageListsGoogleCaptchaEnum = { | |
| Arabic: 'ar', | |
| Afrikaans: 'af', | |
| Amharic: 'am', | |
| Armenian: 'hy', | |
| Azerbaijani: 'az', | |
| Basque: 'eu', | |
| Bengali: 'bn', | |
| Bulgarian: 'bg', |
| Export database: mysqldump -u username -p database_name > data-dump.sql | |
| Import database: mysql -u username -p new_database < data-dump.sql | |
| Specify different port number: mysql -P 3308 -u root -p | |
| <?php echo '<br/>', count(get_included_files()), ' PHP files were required to generate this page.<br/>';?> |
| /*------------------------------------------------------------------------------------------ | |
| * WORPDRESS MULTIPLE ENVIRONMENT | |
| *-----------------------------------------------------------------------------------------*/ | |
| //GET HOSTNAME INFO | |
| $hostname = $_SERVER['SERVER_NAME']; | |
| //VERIFY WHICH ENVIRONMENT THE APP IS RUNNING | |
| switch ($hostname) { | |
| case 'development.dev': |
| mysqldump -u root -p db_name > whatever-dump.sql |
| mysql -p -u user_name database_name < file.sql |
| hg forget test.html |
| <script type="text/javascript"> | |
| (function () { | |
| "use strict"; | |
| // once cached, the css file is stored on the client forever unless | |
| // the URL below is changed. Any change will invalidate the cache | |
| var css_href = './index_files/web-fonts.css'; | |
| // a simple event handler wrapper | |
| function on(el, ev, callback) { | |
| if (el.addEventListener) { | |
| el.addEventListener(ev, callback, false); |
Animation created with wheelSpy.js https://github.com/idiotWu/wheelSpy
Forked from Dolphin Wood's Pen Chrome Browser .