This file contains hidden or 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 urllib | |
import pprint | |
import amazonproduct | |
from BeautifulSoup import BeautifulSoup | |
from review import db | |
AWS_KEY = 'YOUR_AWS_KEY' | |
SECRET_KEY = 'YOUR_AWS_SECRET_KEY' | |
API_PAGE_LIMIT = 10 |
This file contains hidden or 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 | |
# | |
# Kefei Dan Zhou | |
# | |
import math | |
# return a dict or a list of primes up to N | |
# create full prime sieve for N=10^6 in 1 sec |
This file contains hidden or 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 os | |
import time | |
import thread | |
import warnings | |
import signal | |
import traceback | |
from threading import Timer |
This file contains hidden or 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/python | |
# | |
import sys | |
import os | |
import copy | |
import random | |
deck = [1,2,3,4,5,6,7,8,9,0,0,0,0] | |
deck = [1,2,3,4,5,6,7,8,9,0,0,0,0] |