Skip to content

Instantly share code, notes, and snippets.

Owen Trueblood jmptable

Block or report user

Report or block jmptable

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
jmptable /
Last active May 21, 2019
Tools for writing robust Python.
jmptable / bulbs.csv
Last active May 9, 2019
For STEAMplant LED bulb display.
View bulbs.csv
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
jmptable /
Created Apr 10, 2019
Capture Vive Tracker pose with OpenVR in Python.
import sys
import time
import openvr
poses_t = openvr.TrackedDevicePose_t * openvr.k_unMaxTrackedDeviceCount
poses = poses_t()
def get_tracker_index():
jmptable /
Created Mar 20, 2019
Can't type the date on this calendar widget. Have to click through the months. So I made this to automate the clicking.
import java.awt.*;
import java.awt.event.InputEvent;
class Clicker {
public static void click() throws AWTException {
Robot bot = new Robot();
#!/usr/bin/env python3
import sys
import os
import math
import re
import socket
import pystache
import serial
from time import sleep
jmptable / active_low_io.ino
Created Mar 2, 2019
Illustrating how to handle active-low inputs with pull-up resistors from an Arduino.
View active_low_io.ino
void activate(int pin) {
// Sink current on the pin, activating it
digitalWrite(pin, LOW);
pinMode(pin, OUTPUT);
void deactivate(int pin) {
// Set the pin high impedance (~disconnected)
pinMode(pin, INPUT);
jmptable / renderEmbroideryDST.pde
Created Feb 14, 2019
Loads and renders a DST file for embroidery machine designs
View renderEmbroideryDST.pde
// Loads and renders a DST file for embroidery machine designs
// Format specification derived from
import java.util.*;
byte[] designData;
PImage designImage;
void setup() {
jmptable / renderNeuralMorphology.pde
Created Feb 14, 2019
Load and render neural morphology in 3D from
View renderNeuralMorphology.pde
// This code renders neural morphology from an SWC file
// For example:
// Download others from using "Download morphology"
import java.util.*;
import peasy.*;
PeasyCam cam;
Vector<Neuron> neurons;
jmptable / deep_equals.lua
Created Jan 21, 2019
Deeply compare Lua values.
View deep_equals.lua
function table_keys(...)
local keys = {}
for i, t in ipairs(arg) do
for k, v in pairs(t) do
keys[k] = true
return keys
jmptable /
Last active Jan 21, 2019
Run programs from another architecture by chrooting into a fresh Debian root filesystem and running a shell with Qemu.
# Q: Why would you want to do this?
# A: You have something compiled for i386 that you want to run on an ARM embedded system (say, a Raspberry Pi)
# and you want to avoid the overhead of running a full system emulation.
apt-get install binfmt-support qemu qemu-user-static debootstrap
# Create a directory to serve as our alt root
mkdir i386-root
You can’t perform that action at this time.