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
<iframe src="http://blip.tv/play/hq0Kgtf%2BcAI.html" width="480" height="300" frameborder="0" allowfullscreen></iframe><embed type="application/x-shockwave-flash" src="http://a.blip.tv/api.swf#hq0Kgtf+cAI" style="display:none"></embed>
@voodootikigod
voodootikigod / gist:1155790
Created August 19, 2011 01:33
PyCodeConf Ticket Give-away
Day job:
Favorite Python project:
Favorite Conference:
Python Experience Level:
define([
"eyebrow/Widget",
"eyebrow/Template!Example"
], function(Widget, template){
return Widget.extend({
_template: template,
_onInput: function(){
this.set("value", this.textbox.value);
}
<div>
<p>Input: <input data-dojo-attach-point="textbox"
data-dojo-attach-event="input: _onInput"></p>
<p>You typed: {{value}}</p>
</div>
define([
""eyebrow/Widget"",
""eyebrow/Template!Example""
], function(Widget, template){
return Widget.extend({
_template: template,
_onInput: function(){
this.set(""value"", this.textbox.value);
}
<div>
<p>Input: <input data-dojo-attach-point=""textbox""
data-dojo-attach-event=""input: _onInput""></p>
<p>You typed: {{value}}</p>
</div>
void setup(){
Serial.begin(9600);
};
int inByte = 0;
void loop(){
Serial.print(inByte++);
Serial.print('\r');
delay(500);
};
var serialport = require("serialport");
var SerialPort = serialport.SerialPort;
// localize object constructor
var sys = require("sys");
var port = "/dev/tty.usbmodemfd531";
//var port = "/dev/tty.usbserial-A6007zeJ"; // RFID reader
var serial_port = new SerialPort(port, {
baudrate: 9600,
// parser: serialport.parsers.raw
parser: serialport.parsers.readline("\r")
@voodootikigod
voodootikigod / gist:1007426
Created June 4, 2011 01:09
BS ≈ BreakfastScript
Conditionals
( false :)
console.log "if"
:( true )
console.log "else if"
:()
console.log "else"
var sp = require("serialport")
serialport = sp.SerialPort;
var port = "/dev/tty.usbmodem621"; // Update with your port tty path
var serial_port = new serialport(port, {
baudrate: 9600,
parser: sp.parsers.raw
});