Skip to content

Instantly share code, notes, and snippets.

View rainey's full-sized avatar

Shawn Rainey rainey

  • Delta Information Systems
  • Pennsylvania, US
View GitHub Profile
import sys
import numpy as np
import time
import scipy.ndimage as ndimage
searchlines = []
with open(sys.argv[1], "r") as f_in:
searchlines = [[ord(c) for c in line.strip()] for line in f_in]
srch_matrix = np.array(searchlines, dtype='u8')
#requires pyserial: pip install pyserial
# Controls:
# Monoprice 3G SDI 4x1 Switch
# Product # 10320
# UPC # 670541339947
import serial
import time
import sys
import json
import random
import time
postures = [
{
"posture": "Breath and Bandhas",