##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
^ *#[^ ]+$
<IfModule mod_expires.c> | |
ExpiresActive On | |
ExpiresByType image/gif "access plus 1 months" | |
ExpiresByType image/jpg "access plus 1 months" | |
ExpiresByType image/jpeg "access plus 1 months" | |
ExpiresByType image/png "access plus 1 months" | |
ExpiresByType image/vnd.microsoft.icon "access plus 1 months" | |
ExpiresByType image/x-icon "access plus 1 months" | |
ExpiresByType image/ico "access plus 1 months" | |
ExpiresByType application/javascript "access plus 1 months" |
<IfModule mod_deflate.c> | |
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript application/javascript application/x-javascript | |
BrowserMatch ^Mozilla/4 gzip-only-text/html | |
BrowserMatch ^Mozilla/4\.0[678] no-gzip | |
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html | |
</IfModule> |
@media only screen and (min-width: 320px) { | |
/* Small screen, non-retina */ | |
} | |
@media | |
only screen and (-webkit-min-device-pixel-ratio: 2) and (min-width: 320px), | |
only screen and ( min--moz-device-pixel-ratio: 2) and (min-width: 320px), | |
only screen and ( -o-min-device-pixel-ratio: 2/1) and (min-width: 320px), |
<?php | |
// Register the column | |
function price_column_register( $columns ) { | |
$columns['price'] = __( 'Price', 'my-plugin' ); | |
return $columns; | |
} | |
add_filter( 'manage_edit-post_columns', 'price_column_register' ); |
<Files wp-config.php> | |
order allow,deny | |
deny from all | |
</Files> |
Order deny,allow | |
Deny from all | |
<Files ~ ".(xml|css|jpe?g|png|gif|js)$"> | |
Allow from all | |
</Files> |
##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
^ *#[^ ]+$
function the_title_trim( $title ) { | |
$pattern[0] = '/Protected:/'; | |
$pattern[1] = '/Private:/'; | |
$replacement[0] = ''; // Enter some text to put in place of Protected: | |
$replacement[1] = ''; // Enter some text to put in place of Private: | |
return preg_replace($pattern, $replacement, $title); | |
} | |
add_filter('the_title', 'the_title_trim'); |
<?php | |
/* | |
* Converts CSV to JSON | |
* Example uses Google Spreadsheet CSV feed | |
* csvToArray function I think I found on php.net | |
*/ | |
header('Content-type: application/json'); | |
// Set your CSV feed |
/* paste into http://script.google.com | |
run periodically (e.g. every 5 minutes) with a timer by selecting 'Resources' > 'current project's triggers...' | |
*/ | |
function filterLongEmails() { | |
var num_messages = 1; // will be applied to the last n messages. Google allows up to 500 | |
var word_limit = 50; | |
var subj = "Shorter emails will get read."; | |
var body = "Dear friends, I value my time and yours but I appreciate it if you can keep your emails under " + word_limit + " words. Please edit and resend."; | |