Skip to content

Instantly share code, notes, and snippets.

View peplin's full-sized avatar

Christopher Peplin peplin

View GitHub Profile
@peplin
peplin / gist:88ef5f26c4cc53160448
Created March 19, 2015 12:42
Patch conflicting, old version of `six`
import pyxb
# pyxb bundles an old version of the 'six' package (1.5.1) that is not compatible with
# werkzeug 0.10's auto-reloader. It was fixed in six 1.5.2, and the latest
# release is 1.9.0! We work around it by deleting the one problematic module
# that is added (winreg is only available on Windows, Tk on Linux).
import sys
import copy
del sys.modules['pyxb.utils.six.moves.winreg']
for module in copy.copy(sys.modules):
@peplin
peplin / config.json
Created June 4, 2014 02:33
OpenXC custom command to send CAN message
{ "buses": {
"hs": {
"controller": 1,
"speed": 500000,
"raw_writable": true
}
},
"commands": [
{"name": "my_custom_command",
"handler": "sendMyCanMessage"