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
# ---------------------------------------------------------------------------- | |
# Makefile for lcd library | |
# Author: Peter Fleury | |
# File: $Id: Makefile.lcd,v 1.5 2015/01/31 19:59:32 peter Exp $ | |
# | |
# Adjust MCU and F_CPU below to your AVR target | |
# Optionally define -D_LCD_DEFINITIONS_FILE in the CDEFS section below | |
# if you want to use a separate file for display and target specific defines | |
#---------------------------------------------------------------------------- | |
# usage: |
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
// example sketch to demonstrate percieved neopixel library error. | |
// expect green > off(-ish) > blue > off > red > off > green > off(-ish) > blue > off > red | |
// get green > off(-ish) > blue > off > red > off > off > off > blue > off > red | |
#include <Adafruit_NeoPixel.h> | |
#define PIN 0 | |
Adafruit_NeoPixel strip = Adafruit_NeoPixel(1, PIN, NEO_RGB + NEO_KHZ800); |
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 <ESP8266WiFi.h> | |
#include <WiFiClient.h> | |
#include <ESP8266WebServer.h> | |
#include <ESP8266mDNS.h> | |
////////////////////////// | |
// DHT sensor stuff.... | |
////////////////////////// | |
#include "DHT.h" |
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
female end of strand is start and is pin-ed like so... | |
/-----------\ | |
| v | | |
| vcc | gnd | | |
| led | clk | | |
\-----------/ |
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 <Adafruit_NeoPixel.h> | |
#define PIN 0 | |
// Parameter 1 = number of pixels in strip | |
// Parameter 2 = Arduino pin number (most are valid) | |
// Parameter 3 = pixel type flags, add together as needed: | |
// NEO_KHZ800 800 KHz bitstream (most NeoPixel products w/WS2812 LEDs) | |
// NEO_KHZ400 400 KHz (classic 'v1' (not v2) FLORA pixels, WS2811 drivers) | |
// NEO_GRB Pixels are wired for GRB bitstream (most NeoPixel products) |
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
{ | |
"name": "master bedroom", | |
"deviceType": "switch", | |
"onUrl": "http://<<VERA IP ADDRESS>>:3480/data_request?id=action&output_format=json&serviceId=urn:micasaverde-com:serviceId:HomeAutomationGateway1&action=RunScene&SceneNum=<<VERA ON SCENE ID>>", | |
"offUrl": "http://<<VERA IP ADDRESS>>/data_request?id=action&output_format=json&serviceId=urn:micasaverde-com:serviceId:HomeAutomationGateway1&action=RunScene&SceneNum=<<VERA OFF SCENE ID>>" | |
} |
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 | |
/usr/bin/java -jar /home/pi/amazon-echo-bridge-0.1.2.jar --upnp.config.address=<<RASPBERRY PI IP ADDRESS>> |
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
task :server do | |
sh 'bundle exec foreman run jekyll server --watch' | |
end | |
task :build do | |
sh 'bundle exec foreman run jekyll build' | |
end | |
task :deploy do | |
sh 'bundle exec foreman run jekyll build' |
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
psql -c 'create database tongue_tied_test;' | |
rvm use ruby-2.0.0-p598 | |
bundle exec rake |
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
rvm use ruby-2.0.0-p598 | |
bundle install | |
export FOO=bar | |
export TWILIO_ACCOUNT_SID=uh_uh | |
export TWILIO_AUTH_TOKEN=nah | |
export DB_FLAVOR=postgresql | |
export DB_HOST=localhost | |
export DB_PORT=5432 | |
export DB_NAME=test | |
export DB_USER=user |
NewerOlder