Skip to content

Instantly share code, notes, and snippets.

View buley's full-sized avatar
🤑

Tay buley

🤑
View GitHub Profile
@buley
buley / vagrant.org
Last active December 11, 2015 06:58
Vagrant Centos 6.3 -- base script. Work in progress.
x
@buley
buley / gist:4070160
Created November 14, 2012 03:53
Ardunio: PIR Sensor + LED Setup
boolean alreadyLow = true;
int pirPin = 3;
int ledPin = 2;
void setup(){
Serial.begin(9600);
pinMode(pirPin, INPUT);
digitalWrite(pirPin, LOW);
pinMode(ledPin, OUTPUT);
}
@buley
buley / gist:4020247
Created November 5, 2012 20:47
Analyze Jank
#!/usr/bin/env node
var path = require('path')
, fs = require('fs');
file = ''
stream = fs.createReadStream( path.normalize( process.argv[ 2 ] ) );
stream.on( 'data', function(data) {
file += data.toString();
} );
stream.on( 'end', function() {
stream = JSON.parse( file );
@buley
buley / index.html
Created September 27, 2012 02:15 — forked from slojo404/index.html
Timeline using d3.js
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<title>Chronological Diagram of Asia</title>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.v2.js"></script>
<style type="text/css">
.chart {
shape-rendering: crispEdges;
}
@buley
buley / gist:3717211
Created September 13, 2012 20:08
CoffeeScript.sublime-build
{
"cmd": ["coffee", "-c", "$file"],
"selector" : "source.coffee",
"path" : "/usr/local/bin"
}
@buley
buley / file1.txt
Created May 8, 2012 05:05
New item 123
1234567
@buley
buley / file1.txt
Created May 8, 2012 05:04
New item 123
1234567
@buley
buley / file1.txt
Created May 8, 2012 04:13
Brand newest
567.
@buley
buley / file1.txt
Created May 8, 2012 04:02
Brand newest
567.
@buley
buley / file1.txt
Created May 8, 2012 03:57
Brand new
123...