Skip to content

Instantly share code, notes, and snippets.

View enkeboll's full-sized avatar

Andy Enkeboll enkeboll

  • Plaid
  • New York, NY
View GitHub Profile
@enkeboll
enkeboll / open_folder_in_iterm.applescript
Last active August 27, 2015 22:46
Open Folder in iTerm2 from Finder
#!/usr/bin/osascript
# This is my version of
# http://peterdowns.com/posts/open-iterm-finder-service.html
# modified for iTerm 2.9+
# Create this as an "Application", save it as a .app file, and
# drag it onto the Finder window while holding the command key
# (in Yosemite, the command and option keys)
on run {input, parameters}
@enkeboll
enkeboll / thebosco_gif_extractor.py
Created April 28, 2015 15:00
Download all gifs from a thebos.co (TheBosco) gif page
import urllib2
from os import path
from urlparse import urlsplit
dir = path.join(path.expanduser("~"),'Downloads')
url = "http://thebos.co/e/venmohq-celebration"
page = urllib2.urlopen(url).read()
soup = BeautifulSoup(page)
@enkeboll
enkeboll / superbowl_digits.py
Last active August 29, 2015 14:14
Super Bowl Box Pool Digit Picker
import random
def main():
teams = ["Patriots","Seahawks"]
ones = {"Patriots": range(10),
"Seahawks": range(10)}
random.shuffle(teams)
for team in teams:
random.shuffle(ones[team])
@enkeboll
enkeboll / facebook_post_scorer.py
Last active November 8, 2017 18:36
COMS 6998 Social Networks Facebook Post Scorer
__author__ = 'andyenkeboll'
import requests
# on mac, `sudo pip install facebook-sdk`
# https://pypi.python.org/pypi/facebook-sdk
import facebook
from collections import Counter
# `sudo pip install mechanize`
import mechanize
import re