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 / filetype_chmod.sh
Created November 14, 2010 01:52
Adds +x to all HTML files
find ~/path/to/site/ -type f -name '*.htm*' -exec chmod +x {} \;
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;
}
}