Skip to content

Instantly share code, notes, and snippets.

View ebello's full-sized avatar

Ernie Bello ebello

View GitHub Profile
#!/usr/bin/ruby
## JetBlue AYCJ Notifier
# So JetBlue doesn't want to tell us exactly when AYCJ-ers can book flights.
# This script polls my inbox for any new e-mail from JetBlue and continually
# contacts http://www.jetblue.com/aycj and sees if the "come back tomorrow" image is still there.
# If anything has changed or an error occurs, use's Mac OS "say" to dictate text and wake me up
# so I can book my damn flights. I really wonder how many people are going to stay up tonight hitting the
# refresh button every 10 seconds.
@ebello
ebello / gist:330358
Created March 12, 2010 14:32 — forked from remy/gist:330318
Placeholder fixer
/**
* Add this script to the end of your document that use <input autofocus type="text" />
* or <input type="text" placeholder="username" /> and it'll plug support for browser
* without these attributes
* Minified version at the bottom
*/
(function () {
function each(list, fn) {
var l = list.length;