Skip to content

Instantly share code, notes, and snippets.

View yogiblue's full-sized avatar

Chris yogiblue

View GitHub Profile
import serial
import time
import pyperclip
import pyautogui
print ("")
print (" 0Haus Pioneer PX224/E data reciever program")
print (" Press print on the scales and this software will paste it")
print (" wherever your cursor has focus")
print ("")
import serial
import time
import pyperclip
import pyautogui
print "0Haus Pioneer PX224/E data reciever program"
print "Press print on the scales and this software will paste it"
print "wherever your cursor has focus"
s = serial.Serial()
import pyperclip
import pyautogui
import time
pyperclip.copy('77777')
for x in range(5):
time.sleep(5)
pyperclip.copy(x)
print(x)
pyautogui.hotkey('ctrl','v')
@yogiblue
yogiblue / .gitignore
Last active May 23, 2017 11:05
looking at motion detection on a specific area of a 640x480 video recording
#################
## Eclipse
#################
*.pydevproject
.project
.metadata
bin/
tmp/
*.tmp
@yogiblue
yogiblue / SplitAudioChannels.m
Last active January 5, 2016 12:32
Split a directory of two channel wav recordings into separate mono flac files
function [ ] = SplitAudioChannels( )
%SPLITAUDIOCHANNELS Split a 2 channel wav file into two flac files
% Reads a directory of wav files containing 2 channels of audio
% Reads in the wav file, stores the left hand recording
% Repeats the process for the right hand recording
% All audio files start with the name 2014/2015
AllFiles = dir('201*.wav');
% Computes the number of files in the current directory
NumFiles = length(AllFiles);
@yogiblue
yogiblue / store_audio_2channels.py
Last active August 29, 2015 14:14
Use PyAudio to record two channels of audio to WAV file
"""Use PyAudio to record two channels of audio to timestamped one hour long WAV files."""
import pyaudio
import wave
import datetime
CHUNK = 1024
FORMAT = pyaudio.paInt16
CHANNELS = 2
RATE = 44100