Skip to content

Instantly share code, notes, and snippets.

#!/bin/sh
# Just copy and paste the lines below (all at once, it won't work line by line!)
# MAKE SURE YOU ARE HAPPY WITH WHAT IT DOES FIRST! THERE IS NO WARRANTY!
function abort {
echo "$1"
exit 1
}
set -e
@henrahmagix
henrahmagix / dom-insert-counter.js
Created December 5, 2012 22:37 — forked from benfoxall/gist:4217317
DOMNodeInserted
(function($) { $(function() {
// All the nyans.
var nyan = $('.nyan');
var nyanImg = '<img width="40px" src="http://i1.kym-cdn.com/photos/images/original/000/117/424/tumblr_ljwaimhJcK1qa4ebfo1_500.gif" />';
var mouseStillDown = false;
var firstMouseDown = false;
var insertingNyan = false;
var button = $('.button');
// Make the timings editable.