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
#!/usr/bin/env python3 | |
""" | |
Uses code2dtree (https://github.com/sharmaeklavya2/code2dtree) to find | |
the tight approximation factor of the LPT algorithm for makespan minimization | |
for a given number of jobs and machines. | |
Specifically, for every possible scenario, we find out the maximum load | |
a machine in the LPT schedule can have if the optimal makespan is at most 1. |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<array> | |
<dict> | |
<key>phrase</key> | |
<string>₋</string> | |
<key>shortcut</key> | |
<string>_-</string> | |
</dict> |
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
#!/usr/bin/env python3 | |
""" | |
Takes a CSV file as input and performs linear regression on the data. | |
""" | |
import sys | |
import ast | |
import argparse | |
import numpy as np |
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
#!/usr/bin/env python3 | |
""" | |
Convert a float to the nearest fraction. | |
""" | |
import math | |
import ast | |
import argparse | |
from fractions import Fraction as F |
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
#!/usr/bin/env python3 | |
""" | |
Visualize how a quantity varies with time. | |
Reads a CSV file where first column is timestamp. | |
Plots the data points and a weighted average of a sliding window. | |
""" | |
import csv | |
import math |
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
\usepackage{xcolor} | |
\usepackage{hyperref} | |
\definecolor{textColorDark}{HTML}{bdc1c6} | |
\definecolor{bgColorDark}{HTML}{202124} | |
\definecolor{blueDark}{HTML}{8ab4f8} | |
\definecolor{redDark}{HTML}{f9968b} | |
\pagecolor{bgColorDark} | |
\color{textColorDark} |
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
#!/usr/bin/env python3 | |
"""Downloads style/class files necessary to compile a LaTeX paper.""" | |
import sys | |
import os | |
from os.path import join as pjoin | |
import argparse | |
from urllib.request import urlopen | |
from zipfile import ZipFile |
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
#!/usr/bin/env python | |
"""Extract the longest numeric suffix from each line in stdin and output the sum.""" | |
from __future__ import print_function | |
import sys | |
import argparse | |
numstr = '.0123456789' |
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
*.aux | |
*.bbl | |
*.blg | |
*.log | |
*.out | |
*.toc | |
*.brf | |
*.lot | |
*.lof |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder