This file contains 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
#!/usr/bin/env python | |
import Image | |
width, height = 128,512 | |
im = Image.new("RGB", (width,height) ) | |
objective_influence = [[]]*width*height; | |
def main(): |
This file contains 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
jQuery.fn.sortElements = (function(){ | |
var sort = [].sort; | |
return function(comparator, getSortable) { | |
getSortable = getSortable || function(){return this;}; | |
var placements = this.map(function(){ | |
This file contains 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
#include <ht1632.h> | |
#include <MHV_io_ArduinoDuemilanove328p.h> | |
HT1632 matrix = HT1632( MHV_ARDUINO_PIN_4,MHV_ARDUINO_PIN_8,MHV_ARDUINO_PIN_10,MHV_ARDUINO_PIN_9, HT1632::pmos_8commons ); | |
void setup() { | |
digitalWrite(4, HIGH); | |
Serial.begin(9600); | |
matrix.set_mode( HT1632::read_mode ); | |
matrix.send_address( 0 ); |
This file contains 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
#!/usr/bin/python | |
import json | |
from ftdi import * | |
import math | |
import time | |
usleep = lambda x: time.sleep(x/1000000.0) | |
def start(): |
NewerOlder