This file contains hidden or 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 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') |
This file contains hidden or 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
#requires pyserial: pip install pyserial | |
# Controls: | |
# Monoprice 3G SDI 4x1 Switch | |
# Product # 10320 | |
# UPC # 670541339947 | |
import serial | |
import time |
This file contains hidden or 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 sys | |
import json | |
import random | |
import time | |
postures = [ | |
{ | |
"posture": "Breath and Bandhas", |