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
set -g prefix C-a | |
unbind C-b |
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
[[[[[ ~/projects/protonight/github-issues ]]]]] | |
No dependency info in bundle. Filesystem monitoring disabled. | |
=> Errors prevented startup: | |
Exception while bundling application: | |
TypeError: Cannot read property 'type' of undefined | |
at Handlebars.to_json_ast.identifier (/Users/Cultofmetatron/.meteor/packages/handlebars/3993c650fc4614dbaad9f0ec9f91427a58d069dc/parse.js:47:13) | |
at Object.Handlebars.to_json_ast.choices.partial (/Users/Cultofmetatron/.meteor/packages/handlebars/3993c650fc4614dbaad9f0ec9f91427a58d069dc/parse.js:116:18) | |
at Handlebars.to_json_ast.template (/Users/Cultofmetatron/.meteor/packages/handlebars/3993c650fc4614dbaad9f0ec9f91427a58d069dc/parse.js:146:25) | |
at Array.forEach (native) |
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.post('/login', function(req, res) { | |
console.log(res); | |
passport.authenticate('local', function(err, user) { | |
if (req.xhr) { | |
//thanks @jkevinburton | |
if (err) { return res.json({ error: err.message }); } | |
if (!user) { return res.json({error : "Invalid Login"}); } | |
req.login(user, {}, function(err) { | |
if (err) { return res.json({error:err}); } | |
return res.json( |
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
<!doctype html> | |
<html> | |
<head> | |
<title>clock</title> | |
<style type="text/css" media="screen"> | |
.container { | |
width: 800px; | |
margin: auto; | |
} |
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
<!doctype html> | |
<html> | |
<head> | |
<title>clock</title> | |
<style type="text/css" media="screen"> | |
.container { | |
width: 800px; | |
margin: auto; | |
} | |
.chart { |
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
<!doctype html> | |
<html> | |
<head> | |
<title>clock</title> | |
<style type="text/css" media="screen"> | |
.container { | |
width: 800px; | |
margin: auto; | |
} | |
.chart { |
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
/* jslint indent: 2 */ | |
var MyObject = function() { | |
}; | |
MyObject.prototype = Object.create(Object.prototype); | |
MyObject.prototype.noop = function() {}; |
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
object Foo { | |
def factorial(n:Int): Int = { | |
def factorialIter( n: Int , acc: Int, initial: Int) : Int = { | |
if (initial == n) | |
acc * initial | |
else | |
factorialIter(n, acc * initial, initial + 1) |
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
/* | |
* cascade takes a function f1, f2, f3 etc, and composes them such that | |
* f1 is passsed the args to f1 + a next which partiallly applies them to f2 and | |
* so forth. | |
*/ | |
//takes the arguments as a array instead of serially | |
var bind = function(fn, ctx, args) { | |
return function(args2) { | |
args2 = args.concat(Array.prototype.slice.call(arguments)); |
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
//assume args is an array | |
var partial = function(fn, args1) { | |
return function() { | |
var args2 = Array.protoype.slice.call(arguments); | |
return fn.apply(this. args1.concat(args2)); | |
}; | |
}; | |
var loop = function(fn) { |
OlderNewer