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 urllib.request | |
import urllib.parse | |
assignments = [7870656,7876997,7876996,7881004,7884519,7887905,7870657,7874404,7876813,7876859,7876998,7876999,7880604,7881005,7882360,7884520,7885175,7886389] | |
graders = [5443385,5379638,5480325,5444723,5018300,5442526,5204810,5444723,5355971,5416114,5361451,5444041,5443022,5019751,5173849,4877780] | |
#change date range to number of days in month plus 1 | |
days = range(1,29) | |
token = yourkeyhere | |
o = open('feb-grade-data-all.txt','w+'); |
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 os | |
import re | |
import inspect | |
def makeembeds(): | |
path = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe()))) | |
if not os.path.exists("embeds"): | |
os.makedirs("embeds") | |
filelist = os.listdir(path) | |
for file in filelist: |
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: latin-1 -*- | |
import xml.sax | |
import re | |
import unicodedata | |
import codecs | |
class ABContentHandler(xml.sax.ContentHandler): | |
def __init__(self): | |
##define the second level item types we are interested in (these are all 8) | |
self.itemtypes = ("article","inproceedings","proceedings","book","incollection","phdthesis","mastersthesis","www") |
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
class Main(flask.views.MethodView): | |
def get(self): | |
return flask.render_template('remote.html') | |
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
class Dessert | |
def initialize(name, calories) | |
@name = name | |
@calories = calories | |
end | |
# def name = (name) | |
# @name = name | |
# end |
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 random | |
import turtle | |
length = 250 | |
iterations = 50 | |
def drawer(): | |
T=turtle.Turtle() | |
T.hideturtle() | |
T.screen.colormode(255) |
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 random | |
import turtle | |
length = 250 | |
iterations = 50 | |
def drawer(): | |
T=turtle.Turtle() | |
T.hideturtle() | |
T.screen.colormode(255) |
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 flask, flask.views | |
import os | |
import functools | |
import urllib2 | |
import re | |
import operator | |
import webbrowser | |
from datetime import datetime | |
opener=urllib2.build_opener() | |
opener.addheaders=[('User-agent', 'Mozilla/5.0')] |