##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
^ *#[^ ]+$
<?php | |
$email = isset( $_GET['email'] ) ? $_GET['email'] : 'null'; | |
$salt = isset( $_GET['salt'] ) ? $_GET['salt'] : ''; | |
// hash email, split it up | |
$hash = str_split( sha1( $email . $salt ), 2 ); | |
// use first 3 values for foreground | |
$foreground = "{$hash[0]}{$hash[1]}{$hash[2]}"; |
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 | |
/* | |
On an archive-type page, password-protected posts can be odd. | |
If the post is near the bottom, hitting submit reloads the page | |
taking you back to the top. This will simply change the referer | |
so that you are brought back to the post after clicking the | |
submit button on the password form. | |
*/ |
<?php | |
/* | |
Plugin Name: Frameitron | |
Plugin URI: http://ninnypants.com | |
Description: Allow iframes in tinymce for all user levels | |
Version: 1.0 | |
Author: ninnypants | |
Author URI: http://ninnypants.com | |
License: GPL2 |
<?php | |
// Better version over here: | |
// https://github.com/trepmal/Easy-Albums | |
//Plugin Name: Easy Albums | |
//Description: Put a group of galleries into an album, then put the album in a page. | |
/* | |
Quick release! |
<?php | |
/* | |
Plugin Name: Sync Users | |
Plugin URI: http://ninnypants.com | |
Description: Sync users to new blogs as a subscriber | |
Version: 1.0 | |
Author: ninnypants | |
Author URI: http://ninnypants.com | |
License: GPL2 |
<?php | |
//Plugin Name: Convert to Gallery | |
//Description: Extract attachment IDs from selection, reinsert as gallery shortcode. Use "convert to gallery" button in Text mode. Usefull if you accidentally bulk insert a number of images instead of inserting as gallery. | |
add_action( 'admin_print_footer_scripts', 'convert2gallery_quicktag', 100 ); | |
function convert2gallery_quicktag() { | |
?> | |
<script type="text/javascript"> | |
QTags.addButton( 'convert2gallery', 'convert to gallery', extract_and_convert ); |
<?php | |
/* | |
Plugin Name: Show Multisite IDs | |
Plugin URI: http://ninnypants.com | |
Description: Adds table column to show site ID | |
Version: 1.0 | |
Author: ninnypants | |
Author URI: http://ninnypants.com | |
License: GPL2 |
##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
^ *#[^ ]+$
<?php | |
/* | |
Plugin Name: Gist oEmbed | |
Plugin URI: http://ninnypants.com | |
Description: Embed gists into posts | |
Version: 1.0 | |
Author: ninnypants | |
Author URI: http://ninnypants.com | |
License: GPL2 |