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
import feedparser | |
import time | |
import datetime | |
from dateutil import tz | |
import re | |
import httplib | |
import urllib | |
DROPBOX_PERSONAL_FEED = '' | |
DROPBOX_WORK_FEED = '' |
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
import feedparser | |
import time | |
import datetime | |
from dateutil import tz | |
import re | |
import httplib | |
import urllib | |
DROPBOX_PERSONAL_FEED = '' | |
DROPBOX_WORK_FEED = '' |
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
import feedparser | |
import time | |
import datetime | |
from dateutil import tz | |
import re | |
import httplib | |
import urllib | |
DROPBOX_PERSONAL_FEED = '' | |
DROPBOX_WORK_FEED = '' |
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
from BeautifulSoup import BeautifulSoup as Soup | |
import urllib | |
raw_page = urllib.urlopen('http://www.sfrandonneurs.org/home.htm') | |
soup = Soup(raw_page) | |
class MarkdownTable: | |
@staticmethod |
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
from xml.etree.ElementTree import Element, SubElement, tostring | |
from os import path | |
from Foundation import ( | |
CFPreferencesAppSynchronize, | |
CFPreferencesCopyAppValue, | |
CFPreferencesCopyKeyList, | |
CFPreferencesSetValue, | |
kCFPreferencesAnyUser, | |
kCFPreferencesCurrentHost |
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
import httplib | |
import urllib | |
def pushover(title, message): | |
conn = httplib.HTTPSConnection("api.pushover.net:443") | |
conn.request( | |
"POST", "/1/messages.json", | |
urllib.urlencode({ | |
"token": "", |
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
/* | |
References: | |
http://www.macdevcenter.com/pub/a/mac/2002/08/27/cocoa.html?page=2 | |
https://developer.apple.com/library/mac/documentation/UserExperience/Conceptual/AddressBook/Tasks/AccessingData.html#//apple_ref/doc/uid/20001023-BABHHIHC | |
*/ |
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
import clipboard | |
import webbrowser | |
cb_contents = clipboard.get() | |
if cb_contents.startswith('http'): | |
webbrowser.open('safari-' + cb_contents) |
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
import console | |
import sys | |
import webbrowser | |
import urllib | |
base = "launchpro-messaging://" | |
to = "?to=" | |
xcb = 'x-callback-url/' | |
body = "&body=" | |
success = '&x-success=' |
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 ga_code_search() { | |
# alias todo='ga_code_search "TODO\(`whoami`\)"' | |
SCREEN_WIDTH=`stty size | awk '{print $2}'` | |
SCREEN_WIDTH=$((SCREEN_WIDTH-4)) | |
# Given a spooky name so you can alias to whatever you want. | |
# (cs for codesearch) | |
# AG is WAY faster but requires a binary | |
# (try brew install the_silver_searcher) |
OlderNewer