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:
| #!/bin/bash | |
| set -exo pipefail | |
| #install go | |
| cd /root | |
| rm -rf go | |
| rm -rf go_path | |
| find ./ -name "go*.tar.gz" -delete | |
| if [ "$GOROOT" != "/root/go" ]; then | |
| echo "export PATH=/root/go/bin:\${PATH}" >> .bashrc |
| { | |
| "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 | |
| }]}], |
| #!/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 |
I hereby claim:
To claim this, I am signing this object:
| #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" |
| 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: |
| 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() |
| 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 <UIKit/UIKit.h> | |
| #import "UIView+NativeCSS.h" | |
| @interface UIView (NativeCSSIBShim) | |
| @property (nonatomic,weak) NSString *nativeCSSId; | |
| @property (nonatomic,weak) NSString *nativeCSSClass; | |
| @end |