Skip to content

Instantly share code, notes, and snippets.

View KarbonDallas's full-sized avatar
🛰️
building the future one commit at a time

Karbon Dallas KarbonDallas

🛰️
building the future one commit at a time
  • Cascadia Bioregion
  • 21:00 (UTC -07:00)
View GitHub Profile
@KarbonDallas
KarbonDallas / index.js
Created August 20, 2012 22:35 — forked from max-mapper/index.js
official semicolon style of @maxogden
function toCSV = function(table, cb) {
;;;;var cmd = spawn('mdb-export', [this.file, table])
;;;;cmd.stdout.pipe(concat(function(err, out) {
;;;;;;;;;;;;if (err) return cb(err)
;;;;;;;;;;;;if (!out) return cb('no output')
;;;;;;;;;;;;cb(false, out.toString())
;;;;;;;;}))
};
@KarbonDallas
KarbonDallas / gist:3430820
Created August 23, 2012 00:27
TheEmpath repping 4over with class
~ #node.js
[20.16.16] < TheEmpath> so
[20.16.34] < TheEmpath> anyone else have a hot programmer girl in their office? o____O
[20.16.42] < Lorentz> I wiiish
[20.16.48] <@Nexxy> not appropriate.
[20.16.57] »¡« Signoff caaakeeey: #Node.js (Ping timeout: 260 seconds)
[20.17.32] < joshwnj> yeah guys, grow up
[20.17.38] < jerrysv> Nexxy: olynode was fun, you should have gone
[20.18.03] < TheEmpath> my boss came by and said "Here, a new subodinate" and its a very attractive female. the otherwise painfully quite engineering room suddenly came to life and its a problem :X
~~~~~~~
00:45 < niggler> fuck nibble
17:15 < niggler> fuck java
17:23 < niggler> fuck windows
22:14 < niggler> fuck GTD
22:39 < niggler> fuck twitter
22:37 < niggler> fuck IT
19:01 < niggler> fuck CS
21:52 < niggler> fuck java
00:03 < niggler> fuck synergy
00:32 < niggler> fuck table tennis
list: function(req, res, params) {
var that = this;
function stepOne(userIsLogged) {
that
.Users
.getUserByUserID(
[email protected] ./node_modules/serialport
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected] ([email protected])
└── [email protected]
root@omap:/tmp/lol#
@KarbonDallas
KarbonDallas / gist:4648292
Created January 27, 2013 13:08
How to ask for Javascript help
[07.50.35] < guy> what is the best way to keep track of all the bindings to unset them later?
[07.51.02] < jasper^off> ckknight if it can't be my template...what good would it be :P
[07.51.40] < Nexxy> guy, if you just want to remove them
[07.51.43] < Nexxy> you an use unbind
[07.51.45] < Nexxy> can*
[07.51.52] < guy> Nexxy: No, it is off()
[07.52.09] < guy> what about assigning a unique ID to every interface and then using namespace to set them all off?
[07.52.21] < Nexxy> I guess you can use .off too
[07.52.23] < guy> oh. sorry this is #javascript
[07.53.55] < Nexxy> hey I didn't know you can namespace events with jquery
# Documentation for HAProxy
# http://code.google.com/p/haproxy-docs/w/list
# http://haproxy.1wt.eu/download/1.2/doc/architecture.txt
# NOTES:
# open files limits need to be > 256000, use ulimit -n to set (on most POSIX systems)
global
log 127.0.0.1 local0
log 127.0.0.1 local1 notice
@KarbonDallas
KarbonDallas / ninja-rfid.js
Created February 18, 2013 00:49
Barebones RFID module example.
var
serialport = require('serialport')
, stream = require('stream')
, util = require('util')
;
util.inherits(rfid, stream);
module.exports = rfid;
function rfid(opts, app) {
@KarbonDallas
KarbonDallas / rainbows
Created April 12, 2013 00:07
RAINBOWS~!!!1
var five = require('johnny-five');
var board = new five.Board();
board.on('ready', function() {
var red, green, blue;
red = new five.Led(3);
green = new five.Led(5);
[21.38.20] <@nexxy> I used to have port scanners written in mIRC script :(
[21.38.30] < melfy> thats just sad sir
[21.38.36] < othiym23> how very completely unsurprising
[21.38.37] < myndzi> i have literally hundreds of kb of stuff just laying around
[21.38.42] <@nexxy> melfy, sir?
[21.38.44] < myndzi> and almost none of it is haxory :P
[21.38.45] * othiym23 &
[21.38.48] <@konobi> myndzi: -.-
[21.38.53] < superjoe> in groove basin, we have a mode where it keeps a
playlist of size 10 or so full, and it uses a method of