Skip to content

Instantly share code, notes, and snippets.

View plasticmind's full-sized avatar

Jesse Gardner plasticmind

View GitHub Profile
@plasticmind
plasticmind / gist:4339164
Created December 19, 2012 18:31
Confuse and annoy your friends with CSS. Every 20 seconds, blur the screen for 2 seconds.
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) }
}
@plasticmind
plasticmind / gist:5262783
Created March 28, 2013 12:34
Bookmarklet: Search this domain
javascript:(function(){ p=prompt('Search this domain for:',''); if(p){ document.location.href='http://www.google.com/search?q=site:'+document.location.href.split('/')[2]+' '+escape(p)} })();
@plasticmind
plasticmind / jquery.infinitescroll.sr.js
Created June 12, 2013 18:11
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, http://plasticmind.com
*/
$.extend($.infinitescroll.prototype,{
@plasticmind
plasticmind / gist:6799419
Last active December 24, 2015 12:39
All apple-touch-icon permutations...
<!-- 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
plasticmind / gist:4337952
Created December 19, 2012 16:20
Adds a confirmation dialogue to the WordPress publish button.
/* = 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
<script>
jQuery(document).ready(function($){
$('#publishing-action input[name="publish"]').click(function() {
if(confirm('Are you sure you want to publish this?')) {
return true;
{
"color_scheme": "Packages/User/SublimeLinter/Sunburst (SL).tmTheme",
"font_face": "Operator Mono",
"font_options":
[
"gray_antialias"
],
"font_size": 21,
"ignored_packages":
[
@plasticmind
plasticmind / gist:707e65d61cbe57baa49cc9c5a4748844
Created December 12, 2019 04:24
Cubes Visualization for Processing
import ddf.minim.*;
import ddf.minim.analysis.*;
Minim minim;
AudioPlayer song;
FFT fft;
// Group frequency bands into 3 zones
// Note: dropping the top 64% of the frequency
// bandwidth since we can't hear it
@plasticmind
plasticmind / coronavirus-news-04-06-2020.md
Last active April 6, 2020 20:40
Coronavirus Updates: Monday, April 6, 2020

This post appeared is written by Daniel Hanson and appeared originally at: https://www.facebook.com/photo.php?fbid=10222159161191103&set=a.2392855263881&type=3

===

It’s the Monday between Palm Sunday and Easter, a moment for reflection on life and death. Here’s a 10 minute quick summary of some salient corona news.

The curve is bending and flattening. Social distancing is working, and as a consequence, we’ve gone from doubling the number of deaths in the US every three days to doubling them every four. That’s great news, and it should reduce the total number of deaths from this disease meaningfully. Still, more than 10,000 Americans have died from this disease as of this morning.

Hospitalization is a leading indicator; people tend to be hospitalized before they die from the disease. Typically, death from coronavirus comes about 16 days after being admitted to the hospital, and in this respect, it seems that New York has turned the corner. NY had fewer deaths yesterday than it has since mid-March, but that

import tkinter as tk
from string import ascii_letters
from datetime import date
my_date = date.today()
my_date.strftime('%A')
def show_date():
s = my_date.strftime('%a').upper()
#s = 'Manual text here...'
#!/usr/bin/env bash
xset s off -dpms
exec matchbox-window-manager &
while true; do
python3 /home/plasticmind/App/big_date.py
done