Skip to content

Instantly share code, notes, and snippets.

View greymechanic's full-sized avatar
🛠️
building

Andrew Dash greymechanic

🛠️
building
View GitHub Profile
@greymechanic
greymechanic / startmining.sh
Last active December 17, 2015 18:09 — forked from yyolk/bfgminer.rb
#!/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
#include "testApp.h"
//--------------------------------------------------------------
void testApp::setup()
{
ofSetVerticalSync(true);
ofBackground(220);
int baud = 115200;
// 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
@greymechanic
greymechanic / ws2801BASE
Created July 27, 2013 00:45
ws2801Base code
#include "SPI.h"
#include "Adafruit_WS2801.h"
Adafruit_WS2801 strip = Adafruit_WS2801(32);
void setup() {
Serial.begin(115200);
strip.begin();
strip.show();
}
loadedInterfaceName = "hornet";
interfaceOrientation = "portrait";
pages = [[
{
"name": "refresh",
"type": "Button",
"bounds": [.6, .9, .2, .1],
"startingValue": 0,
loadedInterfaceName = "hornetNEST";
interfaceOrientation = "landscape";
pages = [[
{
"name" : "buttonGrid",
"type" : "MultiButton",
"x" : 0, "y" : 0,
// current RGB values
float cRed;
float cGreen;
float cBlue;
// target RGB values
float tRed;
float tGreen;
float tBlue;
@greymechanic
greymechanic / wpa_supplicant.conf
Created December 1, 2013 19:26
wpa_supplicant file for 802.1x network @SAIC /etc/wpa_supplicant/wpa_supplicant.conf
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
@greymechanic
greymechanic / introFunctions
Created September 28, 2014 20:14
Intro OF Functions
ofSetWindowShape(width, height);
ofSetCircleResolution(size);
ofBackground(r,g,b);
ofSetWindowTitle("graphics example");
ofSetFrameRate(framerate);
ofEnableAlphaBlending();
ofSetColor(r,g,b,a);
@greymechanic
greymechanic / OF-Graphics-Example
Created September 28, 2014 20:25
Week 2 OF Graphics Example
/*
*
* interactive art & creative coding
* ofSketch class demo
* Week 2
*
*/
// variable declaration
int x;