Skip to content

Instantly share code, notes, and snippets.

View maxov's full-sized avatar

Max Ovsiankin maxov

View GitHub Profile
from collections import namedtuple
from string import lowercase
Rect = namedtuple('Rect', ['name', 'weight'])
# finds the sum of a list of rects
def rects_sum(rects):
return sum(rect.weight for rect in rects)
# finds the difference between the minimum aspect ratio of rectangles in the subdivison and a perfect square
@maxov
maxov / 0_reuse_code.js
Last active August 29, 2015 14:26
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
def x():
return 3
print(x())

Keybase proof

I hereby claim:

  • I am maxov on github.
  • I am maxov (https://keybase.io/maxov) on keybase.
  • I have a public key ASDOdy2BWYhJfJHXWVLoI_D_QKt4xKMqaa__h-5g-HIKlgo

To claim this, I am signing this object:

import requests
import argparse
import json
from bs4 import BeautifulSoup
from tqdm import tqdm
SUBMISSIONS_URL = 'https://www.gradescope.com/courses/{}/assignments/{}/submissions'
SELECT_PAGES_URL = 'https://www.gradescope.com/courses/{}/assignments/{}/submissions/{}/select_pages'
parser = argparse.ArgumentParser()