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 | |
from pathlib import Path | |
class CanvasGradeFile(): | |
def __init__(self, file: Path): | |
self.file = file | |
def __enter__(self): | |
with self.file.open('r') 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
import time | |
import psutil | |
nices = {} | |
while True: | |
time.sleep(0.2) | |
for proc in psutil.process_iter(['pid', 'cmdline', 'nice']): | |
try: |
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/zsh | |
params="${1}" | |
typeset -i algo=${2} | |
typeset -i threads=${3} | |
{ [[ -z $params ]] || [[ -z ${2} ]] || (( algo < 0 || algo >= 10 )) } && { | |
echo "Please supply the <parameters file> <algorithm number> [thread count?]" | |
exit 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
import serial | |
import time | |
import fileinput | |
port = serial.Serial('/dev/ttyUSB0',19200,serial.EIGHTBITS,serial.PARITY_NONE, | |
serial.STOPBITS_ONE,timeout=5,rtscts = False) | |
def wr(m): | |
port.write(m) |
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
# CS360 makefile | |
# original by robobenklein / bklein3@utk | |
# GPLv3 license | |
# contact me if this breaks for some reason, | |
# but it's not my fault if you delete your programs using this | |
# plug: join the UTKCS discord! | |
CC:=gcc | |
VARS_OLD := $(.VARIABLES) |
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
// ==UserScript== | |
// @name Dark Google Calendar using chrome filters | |
// @include https://calendar.google.com/* | |
// @grant GM_addStyle | |
// @run-at document-start | |
// @version 2018.04.17 | |
// @description Robobenklein found another Google Service needing a dark theme. | |
// ==/UserScript== | |
GM_addStyle ( ` |
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
// ==UserScript== | |
// @name Dark inbox using chrome filters | |
// @include https://inbox.google.com/* | |
// @grant GM_addStyle | |
// @run-at document-start | |
// @version 2018.04.09 | |
// @description Robobenklein got tired of Google Inbox without a dark theme. | |
// ==/UserScript== | |
GM_addStyle ( ` |
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
// for cerr debugging, overloads for vector, list, set | |
template <class T> | |
std::ostream& operator<< (std::ostream& out, const std::vector<T>& v) { | |
if ( !v.empty() ) { | |
out << "vector["; | |
for (T item : v) { | |
out << item; | |
out << ", "; | |
} | |
out << "\b\b]"; |
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 ubuntu:16.04 | |
RUN apt-get update | |
RUN apt-get install -y git libboost-dev libboost-regex-dev curl wget python3 python-pip python3-pip | |
RUN wget https://wrighteagle2d.github.io/binaries/WrightEagle_stable_ubuntu_16.04.tar.gz | |
RUN mv WrightEagle_*.tar.gz wrighteagle.tar.gz | |
ENV TEAM_NAME wrighteagle-docker |
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
Host hydra* | |
Hostname %h.eecs.utk.edu | |
User <netid> | |
ForwardX11 yes | |
forwardagent no |
NewerOlder