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
from pyprofiling import Profiled | |
import logging | |
import random | |
import threading | |
A_HASH_INDEX = 1 | |
class A(object): |
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
from pyprofiling import Profiled | |
import logging | |
import random | |
import threading | |
class ResizingList(list): | |
"""A list of values that automatically grows when items are set, and returns None if an index | |
greater than the list length is provided.""" |
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
"""Draw a live bar graph of frequency data (from Arduino FHT).""" | |
import collections | |
import curses | |
import math | |
import serial # http://pyserial.sourceforge.net/ | |
import time | |
_SERIAL_DEVICE = '/dev/tty.usbmodemfa141' | |
_GRAPH_MAX_Y = 100 |