Skip to content

Instantly share code, notes, and snippets.

View breuderink's full-sized avatar

Boris Reuderink breuderink

View GitHub Profile
@breuderink
breuderink / parse_log.py
Created May 13, 2012 11:01
Parser for HMI-AWoW logs.
#!/usr/bin/env python
import argparse, logging
from collections import namedtuple
import numpy as np
# TODO:
# - diff scan_code and key_id?
LOG_MOUSE_EVENTS = {
512 : 'mouse movement',
@breuderink
breuderink / siks2tex.py
Created September 30, 2011 14:16
Converter for SIKS dissertation list to LaTeX
#!/usr/bin/env python
'''
Quick and dirty hack to get the SIKS dissertation list in LaTeX.
'''
import argparse, re, operator, itertools, sys
parser = argparse.ArgumentParser(
description='Convert SIKS dissertation list to LaTeX.')
parser.add_argument('txt')
parser.add_argument('tex')