I hereby claim:
- I am mike-anderson on github.
- I am mike0x41 (https://keybase.io/mike0x41) on keybase.
- I have a public key ASDJHQc6VCLy3FvgW8v7EfzPzcZ6n2o0NFfoHvdq4O_10Ao
To claim this, I am signing this object:
sieve = function (size) { | |
var primes = [], | |
i = 2, | |
nonprimes = {}; | |
while (primes.length < size) { | |
if (nonprimes[i] == undefined) { | |
primes.push(i); | |
nonprimes[i*i] = [i]; | |
} else { |
#import <UIKit/UIKit.h> | |
#import "UIView+NativeCSS.h" | |
@interface UIView (NativeCSSIBShim) | |
@property (nonatomic,weak) NSString *nativeCSSId; | |
@property (nonatomic,weak) NSString *nativeCSSClass; | |
@end |
class Election: | |
# ed_data: [district_name, record] | |
ed_data = None | |
# va_data: {district_name: [record]} | |
va_data = None | |
def __init__(self,ed_data_,va_data_): | |
self.ed_data = ed_data_ | |
self.va_data = va_data_ |
import sys | |
import requests | |
import json | |
subreddit_name = sys.argv[1] | |
output_file = open(sys.argv[2],'w') | |
subreddit_address = 'http://reddit.com/r/'+subreddit_name+'.json' | |
#default is front page, hot | |
subreddit = requests.get(subreddit_address).json() |
from sklearn.feature_extraction.text import TfidfVectorizer | |
from sklearn.ensemble import RandomForestClassifier | |
from sklearn.cross_validation import cross_val_score | |
import json | |
import numpy | |
data = json.load(open('askreddit.json')) | |
corpus = [] | |
classifiers = [] | |
for article_key in data: |
#some useful path aliases | |
set -x DEV_TOOLS "$HOME/Dev/tools" | |
#place usr/local/bin in the front | |
set -x PATH "/usr/local/bin" $PATH | |
#imports | |
. ~/.autojump/etc/profile.d/autojump.fish | |
set -x PATH $PATH "$DEV_TOOLS/depot_tools" | |
set -x PATH $PATH "$DEV_TOOLS/../harpDoc/bin" |
I hereby claim:
To claim this, I am signing this object:
#!/usr/local/bin/python | |
from PyPDF2 import PdfFileReader, PdfFileWriter | |
import sys | |
if len(sys.argv) < 4: | |
print "usage: mix.py odd.pdf even.pdf result.pdf" | |
exit() | |
odd = PdfFileReader(open(sys.argv[1],'rb')).pages |
{ | |
"title": "Leopold FC660 Capslock to FN w/ function keys and escape", | |
"rules": [ | |
{ | |
"description": "Map capslock to fn", | |
"manipulators": [ | |
{ | |
"conditions": [{ "type": "device_if", "identifiers": [{ | |
"product_id": 257, "vendor_id": 1204 | |
}]}], |