Written by Nathan Lilienthal or:
- nathanlil13
- nathanl
- nathan
- nate
- nathan.lilienthal
- lilienthal.nathan
| o o o | |
| o x | |
| o x x x | |
| x o | |
| x x x o | |
| x | |
| o o | |
| o | |
| # 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 | |
| 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}) |
| 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]) |
| //***************************************************************************** | |
| /// @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 |
| #################################### | |
| # 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 |
#Non-mathematical Introductions
#Videos
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <script type="text/javascript" src="http://mbostock.github.com/d3/d3.js"></script> | |
| <script type="text/javascript" src="http://mbostock.github.com/d3/d3.layout.js"></script> | |
| <script type="text/javascript" src="http://mbostock.github.com/d3/d3.geom.js"></script> | |
| <style type="text/css"> | |
| .link { stroke: #ccc; } | |
| .nodetext { pointer-events: none; font: 10px sans-serif; } | |
| </style> |