A Pen by Pramod Sripada on CodePen.
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
#!/usr/bin/env python | |
import codecs | |
import json | |
import urllib.request | |
import sys | |
# 1. Get Data from InPhO API | |
# https://inpho.cogs.indiana.edu/docs/ | |
# select datatype from ['entity', 'idea', 'thinker'] | |
datatype = 'entity' |
A Pen by Pramod Sripada on CodePen.
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 tkinter import * | |
import random | |
root = Tk() | |
colors = ['navy', 'slate blue', 'lime green', | |
'purple', 'firebrick', 'salmon', | |
'slate gray'] | |
# Exit button |
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
# Rock Paper Scissors | |
# FSM Programming - June 6, 2016 | |
# IU - Jaimie Murdock and Blake Forland | |
import random | |
choices = ['rock', 'paper', 'scissors'] | |
def computer(): | |
return random.choice(choices) |
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
{ "@graph": [ | |
{ "@id": "http://htrc.hathitrust.org/wsid/1616876109a", | |
"@type" : [ "http://wcsa.htrc.illinois.edu/Workset" ] , | |
"http://purl.org/dc/terms/created" : [ { "@value" : "2013-05-01" } ] , | |
"http://purl.org/dc/terms/extent" : [ 5 ] , | |
"http://www.europeana.eu/schemas/edm/gathers" : [ { "@id": "http://hdl.handle.net/2027/wu.89054391917"} , | |
{ "@id": "http://hdl.handle.net/2027/njp.32101067492643"} , | |
{ "@id": "http://hdl.handle.net/2027/hvd.hnr43u"} , | |
{ "@id": "http://hdl.handle.net/2027/osu.32435014276414"} , | |
{ "@id": "http://hdl.handle.net/2027/wu.89107614968"} ] , |
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 platform | |
## Platform-independent command escape | |
## see http://stackoverflow.com/a/29597408 | |
if platform.system() == 'windows': | |
from subprocess import list2cmdline | |
quote_args = list2cmdline | |
else: | |
# POSIX | |
from pipes import quote |
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 csv | |
import wikipedia | |
from wikipedia.exceptions import PageError, DisambiguationError, RedirectError | |
from requests.exceptions import ConnectionError | |
import sys | |
import time | |
ISIS_URL = "http://data.isiscb.org/isis/authority/{}/" | |
names = dict() |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
OlderNewer