I hereby claim:
- I am robobenklein on github.
- I am robobenklein (https://keybase.io/robobenklein) on keybase.
- I have a public key ASABZwYqZ2MXHKEUy9PIrMb2fTyYEH2qP6WJ6YIudju9lwo
To claim this, I am signing this object:
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: |
import time | |
import psutil | |
nices = {} | |
while True: | |
time.sleep(0.2) | |
for proc in psutil.process_iter(['pid', 'cmdline', 'nice']): | |
try: |
#!/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 | |
} |
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) |
I hereby claim:
To claim this, I am signing this object:
# 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) |
// ==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 ( ` |
// ==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 ( ` |
// 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]"; |
# CS140 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 | |
CC:=g++ | |
mkfile_path := $(abspath $(lastword $(MAKEFILE_LIST))) | |
current_dir := $(notdir $(patsubst %/,%,$(dir $(mkfile_path)))) |