This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// console.log(global.Client.toString()); | |
function (host, port) { | |
this.host = host; | |
this.port = port; | |
this.socket = require('dgram').createSocket('udp4'); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vagrant@localhost:~$ tmux list-sessions | |
railsc: 1 windows (created Wed May 21 16:57:04 2014) [283x66] (attached) | |
rookery: 1 windows (created Wed May 21 16:56:30 2014) [141x32] (attached) | |
specs: 1 windows (created Wed May 21 16:58:34 2014) [141x15] (attached) | |
zeus: 1 windows (created Tue May 20 23:42:45 2014) [141x14] (attached) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function htmlDecode(input) { | |
var e = document.createElement('div'); | |
e.innerHTML = input; | |
return e.childNodes.length === 0 ? "" : e.childNodes[0].nodeValue; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
░░░░▄▄▄▄▀▀▀▀▀▀▀▀▄▄▄▄▄▄ | |
░░░░█░░░░▒▒▒▒▒▒▒▒▒▒▒▒░░▀▀▄ | |
░░░█░░░▒▒▒▒▒▒░░░░░░░░▒▒▒░░█ | |
░░█░░░░░░▄██▀▄▄░░░░░▄▄▄░░░█ | |
░▀▒▄▄▄▒░█▀▀▀▀▄▄█░░░██▄▄█░░░█ | |
█▒█▒▄░▀▄▄▄▀░░░░░░░░█░░░▒▒▒▒▒█ | |
█▒█░█▀▄▄░░░░░█▀░░░░▀▄░░▄▀▀▀▄▒█ | |
░█▀▄░█▄░█▀▄▄░▀░▀▀░▄▄▀░░░░█░░█ | |
░░█░░▀▄▀█▄▄░█▀▀▀▄▄▄▄▀▀█▀██░█ | |
░░░█░░██░░▀█▄▄▄█▄▄█▄████░█ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var name = 'Bob'; | |
var Person = function(name){ | |
this.name = name; | |
console.log(name); | |
} | |
var me = Person('John'); | |
console.log(name); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Person(name) { | |
this.name = name; | |
} | |
Person.prototype = { | |
hello : function() { | |
return "Hello, " + this.name; | |
} | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var http = require('http'), | |
fs = require('fs'), | |
jsdom = require('jsdom'), | |
mustache = require('mustache'); | |
var global = this; | |
var trips = [ | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
bundle = browserify() | |
bundle.addEntry('./assets/coffeescripts/lib/renderer.coffee') | |
src = bundle.bundle() | |
fs.writeFileSync @config.coffeePath, src, 'utf8' | |
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* This is intended to be a simple behavior mixin that allows Backbone-style event delegation to be added to any object's prototype. | |
* | |
* Use: | |
* | |
* function MyView(){ this.$el = $('#my_view'); this.delegateEvents(); } | |
* $.extend(MyView.prototype, Eventable); | |
* MyView.prototype.events = {'click a.close': 'close'}; | |
* MyView.prototype.close = function(){ this.$el.hide(); } | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| app | |
|-- collections | |
|-- controllers | |
|-- helpers | |
|-- models | |
|-- templates | |
|-- views |
OlderNewer