Skip to content

Instantly share code, notes, and snippets.

View thoswarner's full-sized avatar

Tom Warner thoswarner

View GitHub Profile
@thoswarner
thoswarner / digital_ocean_setup.md
Last active August 29, 2015 14:27 — forked from ChuckJHardy/digital_ocean_setup.md
DigitalOcean Ubuntu 14.04 x64 + Rails 4 + Nginx + Unicorn + PostgreSQL + Capistrano 3 Setup Instructions
@thoswarner
thoswarner / gist:1318197
Created October 26, 2011 22:24
Variable toggler - arduino
const int buttonPin = 2; // the number of the pushbutton pin
const int ledPin = 13; // the number of the LED pin
int mode = 0;
int debounceTime = 0;
int wasPressed = 0;
void setup() {
pinMode(buttonPin, INPUT);