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
### Keybase proof | |
I hereby claim: | |
* I am kendallm on github. | |
* I am kendallmorgan (https://keybase.io/kendallmorgan) on keybase. | |
* I have a public key whose fingerprint is 0135 AD57 37C2 A7D2 5891 A531 6C5C F33B EE49 DEDF | |
To claim this, I am signing this 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
import csv | |
import sys | |
import webbrowser | |
from urllib import parse | |
URL_FORMAT = 'omnifocus:///add?name=%s&due=%s&project=CS6200¬e=%s' | |
def add_to_omni(title, date, note): | |
link = (URL_FORMAT % (title, date, note)) | |
webbrowser.open(link, new=2) |
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
class Node: | |
def __init__(self, name): | |
self.name = name | |
self.orbitors = [] | |
self.orbiting = None | |
def add_orbitor(self, node): | |
self.orbitors.append(node) | |
def orbit(self, node): |
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 textwrap import wrap | |
from math import inf | |
from collections import Counter | |
import cv2 | |
import numpy as np | |
def get_layers(): | |
with open('../input/input_8.txt') as f: | |
input = wrap(f.readline(), 25) |
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 math import * | |
def nearest_power_of_2(n): | |
return 2 ** ceil(log2(n)) |
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
def pow(x, y): | |
if y == 0: | |
return 1 | |
z = pow(x, y//2) | |
if y % 2 == 0: | |
return z * z | |
return x * z * z |
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
def euclid(x,y): | |
if x < y: | |
temp = y | |
y = x | |
x = temp | |
if y == 0: | |
return x | |
return euclid(y, x % y) |
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 matplotlib.pyplot as plt | |
import numpy as np | |
import math | |
x = np.arange(1000) | |
y = np.log2(x) | |
plt.plot(x,y, label="log(x)") | |
plt.legend() |
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
git push --mirror {student_repo} | |
cd .. | |
git clone {student_repo} | |
git remote add upstream {class_repo} |
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
AdamCaviness.theme-monokai-dark-soda | |
alanz.vscode-hie-server | |
alexanderte.dainty-dark-plus-vscode | |
alexanderte.dainty-vscode | |
arcticicestudio.nord-visual-studio-code | |
dnlytras.nord-wave | |
Equinusocio.vsc-community-material-theme | |
Equinusocio.vsc-material-theme | |
equinusocio.vsc-material-theme-icons | |
fvclaus.sort-json-array |
OlderNewer