v0.0.1
A small (~ 100 LoC) jQuery plugin for creating a basic modal. It is shown and hidden using custom jQuery events show
and hide
and it is autmatically centered (note the starter CSS for this work correctly).
Example usage:
#!/usr/bin/env node | |
// node-lint.js | |
// 2010-11-09 | |
/* | |
2010, John Deerhake, jdeerhake.com | |
*/ | |
// Node.js wrapper for JSLint | |
// This is the Node companion to fulljslint.js (http://www.jslint.com/fulljslint.js). |
(function() { | |
jQuery("input[type=radio]").bind("change", function(ev) { | |
var that = jQuery(this); | |
jQuery("[name=" + that.attr("name") + "]").trigger("radioChange"); | |
}); | |
}()); | |
//Subscribe to radioChange event, and it will get fired every time anything in its group changes |
jQuerify: | |
http://www.learningjquery.com/2009/04/better-stronger-safer-jquerify-bookmarklet | |
jQuery Snowfall: | |
http://www.somethinghitme.com/2011/10/05/jquery-snowfall-1-5-update-now-with-snow-buildup/ |
ANT.reset() requested | |
sent: ['a4', '01', '4a', '00', 'ef'] | |
received: ['a4', '01', '6f', '20', 'ea'] | |
ANT.reset() done | |
ANT.send_network_key() 0 [0, 0, 0, 0, 0, 0, 0, 0] | |
sent: ['a4', '09', '46', '00', '00', '00', '00', '00', '00', '00', '00', '00', 'eb'] | |
received: ['a4', '03', '40', '00', '46', '00', 'a1'] | |
ANT.assign_channel() 0 | |
sent: ['a4', '03', '42', '00', '00', '00', 'e5'] | |
received: ['a4', '03', '40', '00', '42', '00', 'a5'] |
Sun 29 Apr 2012 01:44:43 AM PDT | | NVIDIA GPU 0: GeForce GT 430 (driver version unknown, CUDA version 4.20, compute capability 2.1, 1024MB, 529MB available, 269 GFLOPS peak) | |
Sun 29 Apr 2012 01:44:43 AM PDT | | OpenCL: NVIDIA GPU 0: GeForce GT 430 (driver version 295.40, device version OpenCL 1.1 CUDA, 1024MB, 529MB available) | |
Sun 29 Apr 2012 01:49:15 AM PDT | Einstein@Home | [error] File p2030.20110226.G57.54-00.01.C.b4s0g0.00000_992.bin4 has wrong size: expected 2098320, got 2099360 | |
Sun 29 Apr 2012 01:49:15 AM PDT | Einstein@Home | [error] Checksum or signature error for p2030.20110226.G57.54-00.01.C.b4s0g0.00000_992.bin4 |
#!upstart | |
description "libfitbit client" | |
author "John Deerhake" | |
version "0.0.1" | |
env LIBFITBIT_DIR="/etc/libfitbit" | |
env PYTHON="/usr/bin/python" | |
env LOG_FILE="/var/log/libfitbit_client.log" | |
env PID_FILE="/var/run/libfitbit_client.pid" |
var JSZip=function(e,t){this.files={};this.root="";if(e){this.load(e,t)}};JSZip.signature={LOCAL_FILE_HEADER:"PK",CENTRAL_FILE_HEADER:"PK",CENTRAL_DIRECTORY_END:"PK",ZIP64_CENTRAL_DIRECTORY_LOCATOR:"PK",ZIP64_CENTRAL_DIRECTORY_END:"PK",DATA_DESCRIPTOR:"PK\b"};JSZip.defaults={base64:false,binary:false,dir:false,date:null};JSZip.prototype=function(){var e=function(e,t,n){this.name=e;this.data=t;this.options=n};e.prototype={asText:function(){var e=this.data;if(this.options.base64){e=JSZipBase64.decode(e)}if(this.options.binary){e=JSZip.prototype.utf8decode(e)}return e},asBinary:function(){var e=this.data;if(this.options.base64){e=JSZipBase64.decode(e)}if(!this.options.binary){e=JSZip.prototype.utf8encode(e)}return e},asUint8Array:function(){return JSZip.utils.string2Uint8Array(this.asBinary())},asArrayBuffer:function(){return JSZip.utils.string2Uint8Array(this.asBinary()).buffer}};var t=function(e,t){var n="",r;for(r=0;r<t;r++){n+=String.fromCharCode(e&255);e=e>>>8}return n};var n=function(){var e={}, |