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:
#!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" |
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 |
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'] |
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/ |
(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 |
#!/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). |