Skip to content

Instantly share code, notes, and snippets.

View serdmanczyk's full-sized avatar

Steven James Erdmanczyk Jr serdmanczyk

View GitHub Profile
@serdmanczyk
serdmanczyk / observer.py
Created January 27, 2016 07:57
Python Observer Metaclass
"""
Implements the observer patter via a metaclass
"""
import inspect
def __receive__(self, name, *args, **kwargs):
"""
Method attached to class on class creation used to pass
messages to assigned methods.
"""
@serdmanczyk
serdmanczyk / Keyboard.py
Created May 21, 2015 05:18
Keyboard w/ PyAudio and TKinter
#!/usr/bin/python
# coding=utf-8
import numpy
import random
import math
import copy
import pyaudio
from Tkinter import *
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.