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 | |
from opencv.cv import * | |
from opencv.highgui import * | |
cvNamedWindow("w1", CV_WINDOW_AUTOSIZE) | |
capture = cvCreateCameraCapture(0) | |
def calculate( image ): | |
greyscale = cvCreateImage(cvSize(image.width, image.height), 8, 1) |
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
/* | |
* "Throb" effect. | |
* | |
* Paul Tagliamonte, 2010. | |
* | |
* This is a re-take on the classic "pulse" ( otherwise | |
* known as the standby, throb, blob, mob or rob effect ) | |
* | |
* Yes, that was a joke. Lighten up, this is programming. | |
* |
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
/* | |
* "Throb" effect ( Part Deux ) | |
* | |
* Paul Tagliamonte, 2010. ( Peace, Love and C++, baby ) | |
* | |
* This code is released under the Bacon license. | |
* If you like this code enough, consider sending me bacon. | |
* | |
* That or GPL-3+. | |
* |
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
/* | |
* "Throb" effect ( Part Deux ) | |
* | |
* Paul Tagliamonte, 2010. ( Peace, Love and C++, baby ) | |
* | |
* This code is released under the Bacon license. | |
* If you like this code enough, consider sending me bacon. | |
* | |
* That or GPL-3+. | |
* |
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 <iostream> | |
#include <limits.h> | |
#include <math.h> | |
using namespace std; | |
int WORLD = 0; | |
int LASTWORLD = 0; | |
int NEWWORLD = 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
#!/bin/bash | |
BUILD_DIR=/var/builds | |
GNUPG_KEY=DBC1F58D | |
MIRRORDIR=/git/ | |
WORKDIR=/tmp/$$.d/ | |
echo "Creating workdir: $WORKDIR" | |
mkdir $WORKDIR |
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 <iostream> | |
using namespace std; | |
int main ( int argc, char ** argv ) { | |
char msg[] = { | |
0x1B, '[', '2', 'J', 0x1B, '[', 'H', '\0' | |
}; | |
std::cout << msg; | |
} |
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 time | |
import urllib | |
import json | |
service = "http://pault.ag:8080/tail" | |
lastts = 0 | |
def loop(): |
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 | |
import time | |
import socket | |
import struct | |
import sys | |
import colortrans | |
def printPix( color ): |
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
var Board = require('../lib/firmata').Board; | |
valMin = 0; | |
valMax = 2 * (3.141592654); | |
valCur = 0.0; | |
step = 0.1; | |
oscl_mult = (255/2); | |
leds = [ 9, 10, 11 ]; |
OlderNewer