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 socket | |
import sys | |
import pyaudio | |
import wave # do we need? | |
import time | |
import numpy as np | |
import sox | |
HOST = '' # Symbolic name meaning all available interfaces | |
PORT = 50007 # Arbitrary non-privileged port |
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
begin | |
9 get_position # get the value of the red trigger, 0-255 | |
155 greater_than # test whether it is greater than 155 -> 1 if true, 0 if false | |
if | |
wake | |
750 delay | |
1 # flag for getting out of loop | |
begin | |
dup | |
while |
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 logging | |
import datetime | |
import time | |
# from bs4 import BeautifulSoup | |
from selenium import webdriver | |
from twilio.rest import Client | |
accountSID='SID Here' | |
authToken = 'token here' | |
stores = {'219': 'Old Courthouse' , '231': 'Maple Ave.'} |
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
# Simple calibration program using the LSM303 accelerometer & magnetometer library. | |
# Will print the max accelerometer & magnetometer X, Y, Z axis values every | |
# 1/10th of a second. | |
# Author: Mike McGurrin, combining code from Tony DiCola and Pololu, | |
# with additional concepts from https://appelsiini.net/2018/calibrate-magnetometer/ | |
# License: Follows Pololu license (other code was public domain): | |
# Portions Copyright (c) 2013 Pololu Corporation. For more information, see | |
#http://www.pololu.com/ | |
#http://forum.pololu.com/ |
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
# -*- coding: utf-8 -*- | |
""" | |
Opens previously downloaded historical daily closing values for | |
S&P 500 and Russell 2000, computes 12 month window lows versus | |
opening price for the 12 months. Processes month by month, and also computes | |
monthly open, close, high, low. | |
For use in analyzing Callable Yield Notes | |
Created on Mon Apr 11 23:13:15 2016 |