Skip to content

Instantly share code, notes, and snippets.

View jakevossen5's full-sized avatar

Jake Vossen jakevossen5

View GitHub Profile

(Sorry if you see this email from multiple mailing lists, not sure how well Exchange deals with that)

Hey CS@Mines!

Are you good at Linux? Do you want to become more involved in the department? Well there is a position open for you! I am currently the system administrator for a the CS@Mines servers - I will be graduating in December and looking to hire on a replacement. You will be shadowing/working with me over the summer, and ideally be the primary sysadmin starting in the fall, with me hanging around to help out and answer questions and smooth out the transition. In general, this position is 3-5 hours of work a week, though it varies week to week.

To apply, please email Attach a copy of your Resume - and we will schedule an interview! We are primarily looking for a lower classman who has at least few years left at Mines, to try and limit the amount of turnover in the position.


jakevossen5 /
Created February 6, 2020 18:59
A one liner for a binary to decimal created to demonstrate bad code
while (n := ((print(c[1])) if not (c := ((True, "OUTPUT error ") if -1 in (n := [(lambda t: 2**int(t[0]) if t[1] == '1' else (-1 if t[1] not in ['0', '1'] else 0))(t) for t in enumerate(input('BINARY-STR> ')[::-1])]) else (True, "OUTPUT " + str(sum(n)))) if (input('OPTION> ') == '1') else (False, "OUTPUT goodbye!"))[0] else print(c[1]) or (True if 'y' in (lower_in := input('CONTINUE> ').lower()) else print('OUTPUT goodbye!')))): continue
jakevossen5 / remann.hs
Created February 2, 2020 20:06
Haskell Riemann Sum implementation
do_integral :: (Ord p, Num p, Fractional p) => (p -> p) -> p -> p -> p -> p
do_integral f start end dx
| end <= start = 0
| otherwise = (height * dx) + do_integral f (start + dx) end dx
height = f (start + (dx / 2))
import urllib.request
import csv
def create_articles(path):
temp = []
file = open(path, 'r')
for line in file:
arr = line.split(',')
if arr[0][-4:].lower() == '.pdf':
jakevossen5 /
Created October 31, 2018 21:02
Seconds left bash script
# This is a simple bash script displays a countdown to a specific time in the menu bar (combined with an app like bit bar)
CUR=$(date +%s)
num=$(echo $END - $CUR | bc)
echo $num
jakevossen5 /
Created October 31, 2018 20:16
Percent done with hour/day/month
#!/usr/bin/env PYTHONIOENCODING=UTF-8 /usr/local/bin/python3
# To be used with bit-bar, which shows the % you are done with the current hour, day, week, and year
from datetime import datetime
now =
digits = 3
seconds_since_hour = (now - now.replace(minute=0, second=0, microsecond=0)).total_seconds()
print(("h" + ('{0:.2f}'.format(round((seconds_since_hour / 3600), digits)))[1:]), end= ' ')
seconds_since_midnight = (now - now.replace(hour=0, minute=0, second=0, microsecond=0)).total_seconds()
print("d" +('{0:.2f}'.format(round((seconds_since_midnight / 86400), digits)))[1:],end = ' ')