View this code at http://livecoding.io/4049295
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 requests | |
from StringIO import StringIO | |
from lxml.html import parse | |
from collections import defaultdict | |
import re | |
# the list of Stripe events in the documentation and is not currently available from the API itself | |
url = "https://stripe.com/docs/api#event_types" | |
r = requests.get(url) | |
doc = parse(StringIO(r.content)).getroot() |
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
# Goal: feed a bunch of search terms to try to get at some collections | |
# something to compare to: https://gist.github.com/4046626 | |
# API doc: https://github.com/dpla/platform/wiki | |
# data sources: http://dp.la/wiki/Platform_test_data_sources | |
import requests | |
import json | |
import urllib | |
from itertools import islice |
View this code at http://livecoding.io/4049300
View this code at http://livecoding.io/4083919
View this code at http://livecoding.io/4084256
View this code at http://livecoding.io/4192986
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
# -*- coding: utf-8 -*- | |
# <nbformat>3.0</nbformat> | |
# <headingcell level=2> | |
# Soccer 101 - Player Positions | |
# <codecell> | |
from IPython.core.display import Image |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 itertools import islice | |
def triangular(): | |
n = 1 | |
i = 1 | |
while True: | |
yield n | |
i +=1 | |
n += i |
OlderNewer