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 | |
if [[ -z "$1" ]] ; then | |
INTENSITY=3 | |
echo "No intensity (-I) given, defaulting to '3'" | |
else | |
INTENSITY=$1 | |
fi | |
cgminer -k diablo -o http://stratum.bitcoin.cz:3333 -u notandrewkaye.hex -p theWorker -I 8 |
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 "testApp.h" | |
//-------------------------------------------------------------- | |
void testApp::setup() | |
{ | |
ofSetVerticalSync(true); | |
ofBackground(220); | |
int baud = 115200; |
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
// Receive multiple numeric fields using Arduino 1.0 Stream parsing | |
#include "SPI.h" | |
#include "Adafruit_WS2801.h" | |
#include "TimerOne.h" | |
Adafruit_WS2801 strip = Adafruit_WS2801(32); | |
const int NUMBER_OF_FIELDS = 96; // how many comma-separated fields we expect |
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 "SPI.h" | |
#include "Adafruit_WS2801.h" | |
Adafruit_WS2801 strip = Adafruit_WS2801(32); | |
void setup() { | |
Serial.begin(115200); | |
strip.begin(); | |
strip.show(); | |
} |
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
loadedInterfaceName = "hornet"; | |
interfaceOrientation = "portrait"; | |
pages = [[ | |
{ | |
"name": "refresh", | |
"type": "Button", | |
"bounds": [.6, .9, .2, .1], | |
"startingValue": 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
loadedInterfaceName = "hornetNEST"; | |
interfaceOrientation = "landscape"; | |
pages = [[ | |
{ | |
"name" : "buttonGrid", | |
"type" : "MultiButton", | |
"x" : 0, "y" : 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
// current RGB values | |
float cRed; | |
float cGreen; | |
float cBlue; | |
// target RGB values | |
float tRed; | |
float tGreen; | |
float tBlue; |
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
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev | |
update_config=1 | |
network={ | |
ssid="wireless.artic.edu" | |
proto=RSN | |
key_mgmt=WPA-EAP | |
pairwise=CCMP | |
auth_alg=OPEN | |
eap=TTLS |
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
ofSetWindowShape(width, height); | |
ofSetCircleResolution(size); | |
ofBackground(r,g,b); | |
ofSetWindowTitle("graphics example"); | |
ofSetFrameRate(framerate); | |
ofEnableAlphaBlending(); | |
ofSetColor(r,g,b,a); |
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
/* | |
* | |
* interactive art & creative coding | |
* ofSketch class demo | |
* Week 2 | |
* | |
*/ | |
// variable declaration | |
int x; |
OlderNewer