Skip to content

Instantly share code, notes, and snippets.

View tyspa1's full-sized avatar

tyspa1

View GitHub Profile
@tyspa1
tyspa1 / basic-pygame.py
Created January 10, 2015 16:34
Basis for every pygame program a make
#Basic Pygame
#Every thing you need in a Python/pygame program
#copyright 2015 (c) Tyler Spadgenske GPL 3.0 License
import pygame, sys, os
from pygame.locals import *
pygame.init()
WINDOWWIDTH = 800
@tyspa1
tyspa1 / button.py
Created December 31, 2014 14:27
Test Buttons for Game Show Emulator https://hackaday.io/project/3721
#Poll Raspberry Pi Buttons and control LEDS
#By Tyler Spadgenske
import RPi.GPIO as gpio
import time
class Poll():
def __init__(self):
self.DEBUG = True
@tyspa1
tyspa1 / stt
Created February 22, 2014 21:00
Use Google Speech API with Python using Pyaudio and flac for Windows
import pyaudio
import wave
import audioop
from collections import deque
import os
import urllib2
import urllib
import time
import math