This file contains hidden or 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
#!/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} |
This file contains hidden or 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
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) |
This file contains hidden or 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
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]) |
This file contains hidden or 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
__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 |
NewerOlder