##Simply annoying Tweets
Annoyingly extended words (4+ of the same letter in a phrase): OOOOHHHHMMMMYYYYGGGGOOOODDDD
([a-z])/1{4}
Tweet w/ just a single hashtag: #omgthissucks
^ *#[^ ]+$
##Simply annoying Tweets
Annoyingly extended words (4+ of the same letter in a phrase): OOOOHHHHMMMMYYYYGGGGOOOODDDD
([a-z])/1{4}
Tweet w/ just a single hashtag: #omgthissucks
^ *#[^ ]+$
| .gist { | |
| color: #e4322e; | |
| } | |
| .gistdiv { | |
| padding: 0; | |
| margin: 0; | |
| } | |
| .gist .gist-file { |
| L1 cache reference 0.5 ns | |
| Branch mispredict 5 ns | |
| L2 cache reference 7 ns | |
| Mutex lock/unlock 25 ns | |
| Main memory reference 100 ns | |
| Compress 1K bytes with Zippy 3,000 ns | |
| Send 2K bytes over 1 Gbps network 20,000 ns | |
| Disk seek (SSD) 100,000 ns | |
| Read 1 MB sequentially from memory 250,000 ns | |
| Round trip within same datacenter 500,000 ns |
| <?php /* | |
| ************************************************************************** | |
| Plugin Name: Generate Thumbnails On The Fly | |
| Description: When a thumbnail image is requested of a specific width/height (rather than by name), generate it if it doesn't exist. | |
| Version: 1.0.0 | |
| Author: Alex Mills (Viper007Bond) | |
| Author URI: http://www.viper007bond.com/ |
| <?php | |
| // rewrite /wp-content/themes/theme-name/css/ to /css/ | |
| // rewrite /wp-content/themes/theme-name/js/ to /js/ | |
| // rewrite /wp-content/themes/theme-name/img/ to /img/ | |
| // rewrite /wp-content/plugins/ to /plugins/ | |
| function roots_flush_rewrites() { | |
| global $wp_rewrite; | |
| $wp_rewrite->flush_rules(); | |
| } |
| <?php | |
| add_filter( 'the_content', 'remove_empty_p', 20, 1 ); | |
| function remove_empty_p( $content ){ | |
| // clean up p tags around block elements | |
| $content = preg_replace( array( | |
| '#<p>\s*<(div|aside|section|article|header|footer)#', | |
| '#</(div|aside|section|article|header|footer)>\s*</p>#', | |
| '#</(div|aside|section|article|header|footer)>\s*<br ?/?>#', | |
| '#<(div|aside|section|article|header|footer)(.*?)>\s*</p>#', | |
| '#<p>\s*</(div|aside|section|article|header|footer)#', |
| <?php | |
| /** | |
| * This is free and unencumbered software released into the public domain. | |
| * | |
| * Anyone is free to copy, modify, publish, use, compile, sell, or | |
| * distribute this software, either in source code form or as a compiled | |
| * binary, for any purpose, commercial or non-commercial, and by any | |
| * means. | |
| * |