This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/zsh | |
. ~/.zshrc | |
check_for_collision(){ | |
is_exec=false | |
is_dir=false | |
if [ -d $FOO ]; then | |
is_dir=true | |
fi | |
alias $FOO > /dev/null && is_exec=true | |
echo "E"$is_exec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# gitlog.py | |
# -*- coding: utf-8 -*- | |
import subprocess | |
import sys | |
#tag ideas? you can implement your own! | |
INFO_TAG="[INFO]" # just a heads up, default tag | |
FUCK_TAG="[FUCK]" # something broke! :c | |
CLEAN_TAG="[CLEAN]" # ripped out stuff, removed comments, etc | |
TODO_TAG="[TODO]" # didn't finish what i was doing |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
""" | |
useage: import finger | |
finger.flip() | |
""" | |
finger = """ | |
/´¯/) | |
,/¯ / | |
/ / | |
/´¯/' '/´¯¯`·¸ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
import sys | |
import enchant | |
""" | |
trying to make sense of unicode_ebooks | |
you need pyenchant: | |
brew install enchant | |
pip install pyenchant | |
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// PListValidation.h | |
// Created by Michael Cornell on 4/8/14. | |
// Beerware License | |
// | |
// Validates Dictionaries and Arrays to check if they can writeToFile: (and are a valid PList) | |
#import <Foundation/Foundation.h> | |
@interface NSDictionary (PListValidation) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# all forms must be the same height. each line in a form must be the same width, but each form's width may differ. blank lines are permitted at the top and bottom of each form. | |
A = """ | |
XXXX | |
X X | |
XXXX | |
X X | |
X X | |
""" | |
B = """ | |
XXX |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
clickgasm.py, clicks an x,y point n times on OSX realllly fast | |
usage: "python clickgasm.py <click x,click y> <loop count>" | |
sleepygarden 2014 | |
""" | |
import sys | |
import time | |
import datetime |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ARC Storage - localStorage which syncs across tabs and clears once all tabs using it are gone. | |
// refreshing with a single tab open also wipes it | |
// tries awful hardto match the Storage API, but uses | |
var ARCStorage = (function(){ | |
var arcStorage = {}, arcStoreSharers = 0, didInitSync = false; | |
$(window).focus(function() { | |
sync(); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function init(){ | |
// default behavior is always show copy icon, open file in new window. override that! | |
window.addEventListener('dragover', function(e){ | |
e.stopPropagation(); | |
e.preventDefault(); | |
e.dataTransfer.dropEffect = 'none'; | |
}); | |
window.addEventListener('drop', function(e){ | |
e.stopPropagation(); | |
e.preventDefault(); |
OlderNewer