Skip to content

Instantly share code, notes, and snippets.

Jesse Gardner plasticmind

Block or report user

Report or block plasticmind

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
plasticmind / gist:8bbfcfc3e7b07de7897b8e88c6d567ef
Created Mar 20, 2018
DigiPublish Panel: The Current State of Digital Publishing and Its Challenges in Business
View gist:8bbfcfc3e7b07de7897b8e88c6d567ef
# Panel
Elizabeth Brady, Director Audience Engagement, People, @sheerling
Brian Kroski, Former Chief Digital Officer, AMI, @briankroski
Garrett Bewkes, Publisher, National Review, @egbewkes
Linda Li, Director, Global Strategy and Dev, NYT @multilinda
## Biggest Challenges for the Year
- Linda Li (NYT): NYT has 2.6 million digital subscribers — need to change the perception about how consumers feel about the company as a brand; convincing people to pay for news.
View Boxy Tomorrow Theme Configuration
"color_scheme": "Packages/User/SublimeLinter/Sunburst (SL).tmTheme",
"font_face": "Operator Mono",
"font_size": 21,
plasticmind / gist:4337952
Created Dec 19, 2012
Adds a confirmation dialogue to the WordPress publish button.
View gist:4337952
/* = Add a "molly guard" to the publish button */
add_action( 'admin_print_footer_scripts', 'sr_publish_molly_guard' );
function sr_publish_molly_guard() {
echo <<<EOT
$('#publishing-action input[name="publish"]').click(function() {
if(confirm('Are you sure you want to publish this?')) {
return true;
plasticmind / gist:6799419
Last active Dec 24, 2015
All apple-touch-icon permutations...
View gist:6799419
<!-- non-retina iPhone pre iOS 7 -->
<link rel="apple-touch-icon" href="apple-touch-icon-57x57.png" sizes="57x57">
<!-- non-retina iPad pre iOS 7 -->
<link rel="apple-touch-icon" href="apple-touch-icon-72x72.png" sizes="72x72">
<!-- non-retina iPad iOS 7 -->
<link rel="apple-touch-icon" href="apple-touch-icon-76x76.png" sizes="76x76">
<!-- retina iPhone pre iOS 7 -->
<link rel="apple-touch-icon" href="apple-touch-icon-114x114.png" sizes="114x114">
<!-- retina iPhone iOS 7 -->
<link rel="apple-touch-icon" href="apple-touch-icon-120x120.png" sizes="120x120">
plasticmind /
Created Jun 12, 2013
Behavior for Infinite Scroll jQuery plugin: infinite scrolling doesn't begin until after a manual trigger is clicked.
Infinite Scroll Behavior
Simply Recipes Mobile Style
: Infinite scroll waits for a one-time manual trigger
by Jesse Gardner,
plasticmind / gist:5262783
Created Mar 28, 2013
Bookmarklet: Search this domain
View gist:5262783
javascript:(function(){ p=prompt('Search this domain for:',''); if(p){ document.location.href=''+document.location.href.split('/')[2]+' '+escape(p)} })();
plasticmind / gist:4339164
Created Dec 19, 2012
Confuse and annoy your friends with CSS. Every 20 seconds, blur the screen for 2 seconds.
View gist:4339164
html {
-webkit-animation: annoy 20s ease alternate infinite;
@-webkit-keyframes annoy {
0% { -webkit-filter: blur(0px) }
90% { -webkit-filter: blur(0px) }
100% { -webkit-filter: blur(1px) }
View gist:4282236
function my_load_meta() {
$script = '/js/script.js';
wp_enqueue_script( 'my-tools', get_template_directory_uri().$script, null, my_version_hash($script) );
$stylesheet = '/style.css';
wp_enqueue_style( 'my-style', get_template_directory_uri().$stylesheet, null, my_version_hash($stylesheet) );
add_action('wp_enqueue_scripts', 'my_load_meta');
// Create a hash of the file and pass it back for caching purposes
function my_version_hash($file) {
plasticmind / gist:4277101
Created Dec 13, 2012
Remove unnecessary items from the admin bar
View gist:4277101
// Remove unnecessary items from the admin bar
function gist_custom_admin_bar_remove() {
global $wp_admin_bar;
// $wp_admin_bar->remove_menu('comments');
plasticmind / gist:4162908
Created Nov 28, 2012
Remove the second space after a period in WordPress posts
View gist:4162908
// See:
function gist_kill_double_space( $content ) {
if ( seems_utf8( $content ) ) {
$clean_content = preg_replace( '/[\p{Z}\s]{2,}/u', ' ', $content );
} else {
$clean_content = preg_replace( '/\s\s+/', ' ', $content );
return $clean_content;
add_filter( 'the_content', 'gist_kill_double_space' );
You can’t perform that action at this time.