Skip to content

Instantly share code, notes, and snippets.

@briandoll
briandoll / gist:6980359e85eb9284ea14
Last active December 25, 2019 10:29
Farewell to Joe Strummer by Tom Morello

Joe Strummer, 1952-2002

Farewell to Joe Strummer by Tom Morello

The first time I heard of the Clash was in high school. I was working on the school newspaper, and one day a fellow named Dave Vogel came in with a copy of London Calling that he was showing off to anybody who was willing to listen. I thought the cover of the album was really cool, and asked him "is it heavy metal?" He said "no, but it's really great." I doubted him, but asked if I could borrow it, and I made

@jlong
jlong / uri.js
Created April 20, 2012 13:29
URI Parsing with Javascript
var parser = document.createElement('a');
parser.href = "http://example.com:3000/pathname/?search=test#hash";
parser.protocol; // => "http:"
parser.hostname; // => "example.com"
parser.port; // => "3000"
parser.pathname; // => "/pathname/"
parser.search; // => "?search=test"
parser.hash; // => "#hash"
parser.host; // => "example.com:3000"