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 bs4 import BeautifulSoup | |
import requests | |
import re | |
def getYearIDs(year): | |
pass | |
def writeLine(fileName, listOfLists): | |
pass |
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, random, math | |
# STuff do once | |
schedule = [] | |
n = 10000 | |
avgsd = 0.0 | |
pskill = 24 #percent skill | |
# store the schedule |
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 bs4 import BeautifulSoup | |
import urllib2 | |
import csv | |
import datetime | |
import sys | |
"""teams = ['Washington', 'Boston', 'NY Rangers', 'Pittsburgh', 'Ottawa', 'Buffalo', 'Minnesota', 'Colorado', 'Winnipeg', 'Toronto', 'Montreal', | |
'New Jersey', 'Carolina', 'Tampa Bay', 'Phoenix', 'Columbus', 'NY Islanders', 'Florida', 'Anaheim', 'St Louis', 'Chicago', | |
'Dallas', 'Detroit', 'Vancouver', 'San Jose', 'Los Angeles']""" |
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
@app.route('/saveGame') | |
def saveGame(): | |
n = 6# n = depending on how many items we are saving per puck | |
msg = "Not working yet." | |
# check if number - 2 % n = 0 to see if has right # parameters | |
if ((len(request.args) - 2) % n > 0): | |
json.dumps([{ 'success' : False, 'msg' : 'Invalid number of arguements.' }]) | |
args = sorted(request.args) | |
#print args | |
# need to check if these are valid |
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 pygame, sys, random, math | |
from pygame.locals import * | |
# set up game | |
pygame.init() | |
mainClock = pygame.time.Clock() | |
# create window | |
WINDOWWIDTH = 600 | |
WINDOWHEIGHT = 600 |
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
data = [[1, 1200, [u'24', u'28', u'93', u'5', u'8', u'30'], [u'87', u'9', u'14', u'7', u'44', u'92']], [1, 1200, [u'24', u'28', u'93', u'5', u'8', u'30'], [u'87', u'9', u'14', u'7', u'44', u'92']], [1, 1171, [u'24', u'28', u'93', u'5', u'8', u'30'], [u'87', u'9', u'14', u'7', u'44', u'92']], [1, 1155, [u'14', u'9', u'24', u'22', u'44', u'30'], [u'71', u'18', u'24', u'7', u'58', u'92']], [1, 1125, [u'14', u'25', u'9', u'22', u'44', u'30'], [u'71', u'18', u'24', u'2', u'58', u'92']], [1, 1122, [u'14', u'25', u'9', u'22', u'44', u'30'], [u'71', u'18', u'24', u'2', u'58', u'92']], [1, 1122, [u'10', u'48', u'17', u'27', u'29', u'30'], [u'16', u'48', u'19', u'5', u'41', u'92']], [1, 1084, [u'10', u'48', u'17', u'27', u'29', u'30'], [u'16', u'48', u'19', u'5', u'41', u'92']], [1, 1078, [u'10', u'48', u'17', u'27', u'29', u'30'], [u'16', u'48', u'19', u'5', u'41', u'92']], [1, 1078, [u'36', u'12', u'26', u'5', u'8', u'30'], [u'46', u'27', u'10', u'5', u'58', u'92']], [1, 1075, [u'36', u'12', u'26', u'5', u'8', u'30'] |
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 urllib2 | |
from bs4 import BeautifulSoup | |
import datetime | |
start = datetime.datetime.now() | |
teams = ["MIN", "MTL", "N.J", "NSH", "NYI", "NYR", | |
"OTT", "PHI", "PHX", "PIT", "S.J", "STL", "T.B", "TOR", "VAN", "WSH"] | |
seasons = ["0809", "0910", "1011"] |
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 pygame, sys, random, math | |
from pygame.locals import * | |
# set up game | |
pygame.init() | |
mainClock = pygame.time.Clock() | |
# create window | |
WINDOWWIDTH = 600 | |
WINDOWHEIGHT = 600 |
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 glob | |
# declare types of commands | |
C_ARITMETIC = object() | |
C_PUSH = object() | |
C_POP = object() | |
C_LABEL = object() | |
C_GOTO = object() | |
C_IF = object() | |
C_FUNCTION = object() |
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
# we need our imports | |
import string, sys | |
# global hash table | |
hashTable = {} | |
RAMstart = 16 # variables are stored in RAM[16] to... RAM[255]?? | |
# parse the assembly | |
def Assembler(filename): | |
# define the variables we need to |