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
| #################################### | |
| # BASIC REQUIREMENTS | |
| # http://graphite.wikidot.com/installation | |
| # http://geek.michaelgrace.org/2011/09/how-to-install-graphite-on-ubuntu/ | |
| # Last tested & updated 10/13/2011 | |
| #################################### | |
| cd | |
| sudo apt-get update | |
| sudo apt-get upgrade |
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
| //***************************************************************************** | |
| /// @file | |
| /// @brief | |
| /// Arduino SmartThings Shield LED Example | |
| //***************************************************************************** | |
| #include <SoftwareSerial.h> //TODO need to set due to some weird wire language linker, should we absorb this whole library into smartthings | |
| #include <SmartThings.h> | |
| #define PIN_THING_RX 3 |
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
| import sys | |
| import cv | |
| class FaceDetect(): | |
| def __init__(self): | |
| cv.NamedWindow ("CamShiftDemo", 1) | |
| device = 0 | |
| self.capture = cv.CaptureFromCAM(device) | |
| capture_size = (320,200) | |
| cv.SetCaptureProperty(self.capture, cv.CV_CAP_PROP_FRAME_WIDTH, capture_size[0]) |
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
| import socket | |
| class ImageDownloadFailure(Exception): | |
| def __init__(self, host, port, path, error): | |
| self.host = host | |
| self.port = port | |
| self.path = path | |
| msg = ('Failed to download %(path)s from %(host)s:%(port)s: %(error)s' | |
| % {'host': host, 'port': port, 'path': path, 'error': error}) |
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
| # custom/processors.py | |
| from django.conf import settings | |
| from django.core.files.storage import default_storage | |
| try: | |
| from PIL import Image | |
| except ImportError: | |
| import Image |
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
| o o o | |
| o x | |
| o x x x | |
| x o | |
| x x x o | |
| x | |
| o o | |
| o | |
NewerOlder





