Skip to content

Instantly share code, notes, and snippets.

// 1: how could you rewrite the following to make it shorter?
if (foo) {
bar.doSomething(el);
} else {
bar.doSomethingElse(el);
}
#!/usr/bin/perl
# Description: http://daringfireball.net/2010/08/open_urls_in_safari_tabs
# License: See below.
# http://gist.github.com/507356
use strict;
use warnings;
use URI::Escape;
@cowboy
cowboy / launch-firefox.applescript
Created July 31, 2010 22:02
"Have every version of Firefox running simultaneously" AppleScript
(*
* Launch Firefox - v1.0 - 7/31/2010
* http://benalman.com/
*
* Copyright (c) 2010 "Cowboy" Ben Alman
* Dual licensed under the MIT and GPL licenses.
* http://benalman.com/about/license/
*)
-- Usage:
@paulirish
paulirish / README.md
Created January 4, 2010 02:38
imagesLoaded() jquery plugin