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
Dumping dumps/anonymt_dump-20120814.mfd: | |
CMI: {'CardSerialNumber': aa9035d8, | |
'CardSerialNumberCheckByte': d7, | |
'ManufacturerData': bitarray('0000100100001001000000000100010111010011110101011000111001100100000000000000001010011000'), | |
'CalculatedCardSerialNumberCheckByte': d7 | |
} | |
TCCI: {'MADInfoByte': bitarray('0000000000000000'), | |
'CardVersion': Integer 4 (bitarray('000100')), | |
'CardProvider': PTA be00: Rejsekortet A/S, | |
'CardValidityEndDate': DateCompact: 6573 2014-12-31 bitarray('01100110101101'), |
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
// teensy_steno | |
// Michael Farrell <micolous+git@gmail.com> | |
// | |
// This implements the TX Bolt protocol. It works with Teensy LC, but should work | |
// with other Arduino compatibles (once you fix touch inputs). | |
// | |
// This version supports arbitrary keymaps, so you don't need to wire the keyboard | |
// the same as the TX Bolt protocol. This should make scanning around twice as fast. | |
// | |
// This uses a "touch" sensitive pin (18) for the number bar. |
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
<html> | |
<head> | |
<style type="text/css"> | |
html { | |
background: repeating-linear-gradient( | |
90deg, | |
#000, | |
#000 2px, | |
#fff 2px, |
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/env python | |
# -*- mode: python; indent-tabs-mode: nil; tab-width: 2 -*- | |
""" | |
greencard_reader.py | |
Prototype reader for Greencard (TAS) card dumps. | |
See https://github.com/micolous/metrodroid/wiki/Greencard for format details. | |
Copyright 2017 Michael Farrell <micolous+git@gmail.com> | |
Note: This loads the entire file into memory blindly. Do not use on large file |
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/env python | |
# -*- mode: python; indent-tabs-mode: nil; tab-width: 2 -*- | |
""" | |
myway_reader.py | |
Prototype reader for MyWay (ACT) card dumps. | |
See https://github.com/micolous/metrodroid/wiki/MyWay for format details. | |
Copyright 2016 Michael Farrell <micolous+git@gmail.com> | |
Note: This loads the entire file into memory blindly. Do not use on large file |
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
{ | |
"info": { | |
"version": "1.0", | |
"license": { | |
"url": "https://creativecommons.org/licenses/by/4.0/legalcode", | |
"name": "CC-BY-4.0" | |
}, | |
"title": "Transport for NSW Open Data API" | |
}, | |
"paths": { |
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
#!/bin/sh | |
ffmpeg -y \ | |
-f v4l2 \ | |
-input_format mjpeg \ | |
-i /dev/video0 \ | |
-framerate 25 \ | |
-video_size 640x360 \ | |
-s 1280x720 \ | |
-c:v rawvideo -c:a pcm_s16le \ | |
-pix_fmt yuv420p \ |
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 argparse, struct, base64, datetime | |
MODES = { | |
1: 'Value-add machine', | |
4: 'Bus', | |
5: 'Train', | |
18: 'Ferry', | |
} | |
STATIONS = { |
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 abbreviations import abbreviations | |
from sys import argv | |
import re | |
# get all the commandline text | |
in_str = ' '.join(argv[1:]).upper() | |
# compile a regular expression for each of the stations, do this only on startup, because it is slow (~240 ms) | |
abb_re = {} | |
for k, v in abbreviations.iteritems(): |
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
# /etc/apt/preferences | |
Package: nodejs | |
Pin: origin "" | |
Pin-Priority: -1 | |
Package: nodejs-* | |
Pin: origin "" | |
Pin-Priority: -1 |