Skip to content

Instantly share code, notes, and snippets.

View mattd's full-sized avatar

Matt Dawson mattd

  • WillowTree Apps
  • Charlottesville, VA
View GitHub Profile
@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"
@ezotrank
ezotrank / post-commit.sh
Created June 24, 2012 10:11
Create lolcommit in emacs with magit
#!/bin/bash
/bin/bash -l -c 'export RUBYOPT="" && lolcommits --capture'
@carimura
carimura / gist:7523120
Created November 18, 2013 05:50
Programming Comcast Controller for AppleTV
#*Step By Step Instruction*
##Set Apple TV to Aux Keys
--
Press Aux (Device) Button
Hold Setup Key until Aux Button Blinks Twice
Type in code 31115 (Aux Button will blink twice, if it is a long blink try last three steps again)
##Fix Play and Pause Keys
--