Skip to content

Instantly share code, notes, and snippets.

Avatar
🚀
Changing the world

Chris Williams voodootikigod

🚀
Changing the world
View GitHub Profile
@voodootikigod
voodootikigod / wiflea.nut
Created Jan 24, 2013
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.
View wiflea.nut
// 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;
View robot.js
//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 / temperature.j5.js
Created Sep 19, 2012
Johnny-Five Sensor to read a TMP36 Temperature Sensor, Circuit board: http://www.oomlout.com/a/products/ardx/circ-10
View temperature.j5.js
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
});
View hsm100.xml
<?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>
View gist:2219942

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 Jan 28, 2012
JSConf Speaker Selection Statistics
View gist:1695407

343 total proposals submitted

233 unique speakers

Category Breakdown

Data: 4

Design: 5

@voodootikigod
voodootikigod / migrate.js
Created Jan 3, 2012
Schema (SQL) and Data (JS) Migrations for node.js (specifically PostgreSQL, but could be MySQL)
View migrate.js
#!/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 Jan 3, 2012
Log all output from a serial port connection to a log file.
View seriallogger.js
/*
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];