This file contains hidden or 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
#Requires twss.js by Daniel Rapp. npm install -g twss | |
twss = require('twss') | |
module.exports = (robot) -> | |
robot.respond /twss\s*(.*)?$/i, (msg)-> | |
query = msg.message.text.split(" ") | |
shesaid = "" | |
for said in query | |
if said not in query[0..1] | |
shesaid += said + " " |
This file contains hidden or 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
foo |
This file contains hidden or 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
/** Example AMD Module definition in RequireJS */ | |
define(function(){ | |
this.prototype.fnSuper = function(){ | |
//do stuff | |
}; | |
}); |
This file contains hidden or 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
Node* LinkedList::getBeforeTail(Node* h) | |
{ | |
if (!h.next) | |
{ | |
return 0; | |
} | |
if (getBeforeTail(h) == 0) | |
{ | |
return h; | |
} |
This file contains hidden or 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
Node* LinkedList::removeAtHead() | |
{ | |
if (!head) | |
{ | |
return 0; | |
} | |
Node* firstNode = head; | |
//Advance to the second position in the linked list because | |
//the first one will be popped off and (hopefully) deleted by the process | |
//requesting it.. |
This file contains hidden or 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
<h1>{{Obj.title}}</h1> | |
<table> | |
{{Collection.each}} | |
<tr><td>{{each.data}}</tr></td> | |
{{/Collection.each}} |
This file contains hidden or 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 Queue(delay){ | |
this._lastExecutionTime = new Date(); | |
this._delay = delay; | |
} | |
Queue.prototype.dequeue = function(){ | |
//return first function in the list | |
}; | |
This file contains hidden or 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
{ | |
// Settings | |
"passfail" : false, // Stop on first error. | |
"maxerr" : 100, // Maximum error before stopping. | |
// Predefined globals whom JSHint will ignore. | |
"browser" : true, // Standard browser globals e.g. `window`, `document`. | |
"node" : false, |
This file contains hidden or 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() { | |
require.config({ | |
paths: { | |
'jquery': 'vendor/jquery-1.7.2', | |
'backbone': 'vendor/backbone', | |
'underscore': 'vendor/underscore', | |
'handlebars': 'vendor/handlebars-1.0.0.beta.6', | |
'text': 'vendor/require.text', | |
'i18n': 'vendor/i18n', |
This file contains hidden or 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
require.config | |
paths: | |
'jquery': 'vendor/jquery-1.7.2' | |
'backbone': 'vendor/backbone' | |
'underscore': 'vendor/underscore' | |
'handlebars': 'vendor/handlebars-1.0.0.beta.6' | |
'text': 'vendor/require.text' | |
'i18n': 'vendor/i18n' | |
'use': 'vendor/use' | |
use: |
OlderNewer