Skip to content

Instantly share code, notes, and snippets.

View pdokas's full-sized avatar
🌵
Fnord

Phil Dokas pdokas

🌵
Fnord
View GitHub Profile
@pdokas
pdokas / svn-color.py
Created March 28, 2012 18:37 — forked from rharmes/svn-color.py
Colorize SVN
#
# 1) Alias this: alias svn=/Users/foo/dev/svn-color.py
# 2) Paste the script below into the above file
# 3) chmod 777 <the file>
# 4) Delete this quote block so the env line is line 1
#
#!/usr/bin/env python
"""
javascript:%20(function(){var%20a=document.getElementsByTagName('script'),i,l,result,rurl=/^http:\/\/use\.typekit\.com\/([0-9A-Za-z]+)\.js/;for(i=0,l=a.length-1;i<l;i++){if(result=rurl.exec(a[i].getAttribute('src'))){window.location.assign('http://typekit.com/colophons/'+result[1]);break;}}%20if(!result){alert('This%20site%20doesn\'t%20use%20Typekit!');}})();
@pdokas
pdokas / ipadlabels
Created October 27, 2010 16:51 — forked from anonymous/ipadlabels
var iPadLabels = function () {
function fix() {
var labels = document.getElementsByTagName('label'),
label;
for (var i = 0; label = labels[i]; i++) {
if (label.getAttribute('for')) {
label.onclick = labelClick;
}
}