Skip to content

Instantly share code, notes, and snippets.

View voodootikigod's full-sized avatar
🚀
Changing the world

Chris Williams voodootikigod

🚀
Changing the world
View GitHub Profile
@voodootikigod
voodootikigod / wiflea.nut
Created January 24, 2013 20:05
The Squirrel code to create an Electric Imp driven micro wifi analyzer. Presents connected state, signal RSSI value, roundtrip latency, and voltage. Great for remote signal detection and analysis.
// Code below this line is for your node.
// Drive 3.3v LCD Screen using a Sparkfun SerLCD backpack from an Electric IMP
hardware.uart12.configure(9600, 8, PARITY_NONE, 1, NO_RX);
CharactersInLCD <- 16;
ConnectedState <- false;
LastLatency <- 0;
//FightCode can only understand your robot
//if its class is called Robot
var Robot = function(robot) {
};
Robot.prototype.onIdle = function(ev) {
var robot = ev.robot;
robot.rotateCannon(10);
@voodootikigod
voodootikigod / robotjs-vendors.md
Created November 19, 2012 01:15
Shared RobotJS Vendors
@voodootikigod
voodootikigod / temperature.j5.js
Created September 19, 2012 20:39
Johnny-Five Sensor to read a TMP36 Temperature Sensor, Circuit board: http://www.oomlout.com/a/products/ardx/circ-10
var five = require("johnny-five"),
board, sensor;
board = new five.Board();
board.on("ready", function() {
sensor = new five.Sensor({ pin: 0, freq: 250 });
board.repl.inject({
sensor: sensor
});
<?xml version="1.0" encoding="utf-8"?>
<Product xmlns='http://code.google.com/p/open-zwave/'>
<!-- Configuration Parameters -->
<CommandClass id="112">
<Value type="byte" index="0" genre="config" label="Unidentified Parameter" units="" min="0" max="255" value="5">
<Help>
Parameter #0 is undocumented: let us know if you know what it does!
Attributes (type, units, min and max) are wild guesses, except default value.
</Help>
</Value>

It has been brought to my attention that I did not clarify how to RSVP for the trips. To avoid further confusion, I have put together a sign up sheet online. Please check the boxes for each activity you plan on attending. If you have already emailed me I will still count you as attending but it would be great if you could still fill out the form, so I have your phone number and all the data in one central location.

Thank you very much and we are super excited for Scottsdale.

Laura Williams

@voodootikigod
voodootikigod / gist:1695407
Created January 28, 2012 18:49
JSConf Speaker Selection Statistics

343 total proposals submitted

233 unique speakers

Category Breakdown

Data: 4

Design: 5

@voodootikigod
voodootikigod / migrate.js
Created January 3, 2012 22:45
Schema (SQL) and Data (JS) Migrations for node.js (specifically PostgreSQL, but could be MySQL)
#!/usr/bin/env node
// this file is stored in a directory of APP_ROOT/script for me, all things are relative to that
var APP_ROOT = __dirname+"/../";
// this assumes there is a file stored in APP_ROOT called "config.js" with the following structure:
//
// module.exports = {
// "development: {
// "postgresql": "tcp://postgres@localhost/dev-db"
@voodootikigod
voodootikigod / seriallogger.js
Created January 3, 2012 15:16
Log all output from a serial port connection to a log file.
/*
Simple example that takes a command line provided serial port destination and routes the output to a file of the same name with .log appended to the port name.
usage: node logger.js /dev/tty.usbserial <baudrate>
*/
var SerialPort = require("serialport");
var fs = require("fs");
var port = process.argv[2];