Skip to content

Instantly share code, notes, and snippets.

View jessykate's full-sized avatar

Jessy Kate Schingler jessykate

View GitHub Profile
@jessykate
jessykate / Mock up of an activity stream hypothesis verb.xml
Created July 31, 2010 23:04
Mock up of an activity stream verb type of "hypothesis" (cf. open notebook /open research)
<entry>
<id>tag:openresear.ch,2010:hypothesis01</id>
<title>Jessy posted a Hypothesis</title>
<published>2010-07-02T15:29:00Z</published>
<!-- the link provides an HTML representation of the activity -->
<link rel="alternate" type="text/html"
href="http://openresear.ch/jessy/labbook01/hypothesis/1" />
<!-- this is the base verb that our custom verb builds on -->
@jessykate
jessykate / Encode Tweet
Created July 25, 2010 16:23
prompt the user for tweet text and return it urlencoded
#!/usr/bin/python
import urllib
def encode_tweet(tweet):
base_url="http://twitter.com/home?"
query = {"status": tweet}
return base_url+urllib.urlencode(query)
if __name__ == '__main__':
@jessykate
jessykate / Twequency.py
Created May 16, 2010 23:56
Show twitter friends sorted by tweet frequency.
#!/usr/bin/python
'''
Shows twitter friends sorted by tweet frequency.
'''
import urllib, urllib2, json, datetime
def get_friends(username):
friends = {}
#!/usr/bin/python
import json, urllib2
'''
retrieves all ideas from all categories for all agencies, and
normalizes category names from unique numerical ids to shared category
names so they can be compared across agencies. each idea in the list
contains the following keys: