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
"""Generate LaTeX that only includes solutions for a particular TeX document. | |
Usage: | |
questions.py [--source=<src>] [--dest=<dest>] | |
""" | |
from TexSoup import TexSoup | |
from docopt import docopt | |
SOlUTION_COMMAND = 'sol' |
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
"""Demonstration of provided split utility. | |
Divides a PDF into several chunks and eliminates certain pages from each pdf. | |
""" | |
from splits import splits | |
INPUT_FILE = "./merged.pdf" | |
OUTPUT_DIRECTORY = "./out" | |
PAGE_SPLITS = "1-10,11-20,21-30,31-42,43-52,53-64,65-74,75-86,87-98,99-110,111-122,123-134,135-146,147-158,159-168,169-180,181-192,193-204,205-216,217-228,229-240,241-250,251-262,263-274,275-284,285-296,297-308,309-320,321-332,333-344,345-356,357-368,369-380,381-392,393-404,405-416" |
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
docopt==0.6.2 | |
trimesh==2.10.18 |
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
""" | |
Check differences between files containing integers. | |
This script checks the diff between two files and writes to a JSON compatible | |
with Gradescope's autograder. | |
Usage: | |
autograder.py <ref> <subm> [options] | |
Options: |
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 numpy as np | |
import matplotlib | |
matplotlib.use('Agg') # wizardry to prevent Tkinter error | |
import matplotlib.pyplot as plt | |
n = 100 | |
line = lambda x: 2*x + 3 # true line | |
e = 10 | |
reg = 1e2 |
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
.rotated-square { | |
transform: | |
rotateX(20deg) /* flip "up" */ | |
rotateY(-20deg) /* flip "right" */ | |
rotateZ(20deg); /* rotate counter-clockwise */ | |
} | |
.rotated-square-shorthand { | |
transform: rotate3d(20deg, -20deg, 20deg); | |
} |
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
<div class="square parent"> | |
<div class="square child"></div> | |
</div> |
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
.square { | |
transform: perspective(200px) rotateX(20deg); | |
} |
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
<div class="scene"> | |
<div class="card"> | |
<div class="face front">front</div> | |
<div class="face back">back</div> | |
</div> | |
</div> |
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
<div class="scene"> | |
<div class="cube"> | |
<div class="face front">front</div> | |
<div class="face right">right</div> | |
<div class="face left">left</div> | |
<div class="face back">back</div> | |
<div class="face top">top</div> | |
<div class="face bottom">bottom</div> | |
</div> | |
</div> |
OlderNewer