Skip to content

Instantly share code, notes, and snippets.

View tmck-code's full-sized avatar
🎯
Focusing

Tom McKeesick tmck-code

🎯
Focusing
View GitHub Profile
@tmck-code
tmck-code / csv_funtimes_generic.py
Created October 30, 2018 22:21
The refactored, generic version of csv_funtimes.py. Produces identical output
#!/usr/bin/env python3
from datetime import datetime
from datetime import timedelta
import sys
import csv
from collections import namedtuple
TIME_FORMAT = '%d/%m/%Y %H:%M'
Timestamp = namedtuple('timestamp', ['key', 'timestamp'])
@tmck-code
tmck-code / csv_funtimes.py
Last active October 30, 2018 07:23
CSV funtimes! Call with `parse.py <input_file> <output_file>`
#!/usr/bin/env python3
from datetime import datetime
from datetime import timedelta
import sys
import csv
TIME_FORMAT = '%d/%m/%Y %H:%M'
def load_file(fpath):
with open(fpath, 'r') as istream:
@tmck-code
tmck-code / Atbash.java
Last active August 29, 2015 14:13
Java implementations of simple substitution ciphers
/*
* Class Name: Atbash
*
* @author Thomas McKeesick
* @version 1
*
* Creation Date: Wednesday, September 24 2014, 11:54
* Last Modified: Friday, January 09 2015, 13:01
*
* Class Description: This is program that decodes the