Skip to content

Instantly share code, notes, and snippets.

View cultofmetatron's full-sized avatar

Peter de Croos cultofmetatron

View GitHub Profile
@cultofmetatron
cultofmetatron / gist:5400125
Created April 16, 2013 22:17
file://localhost/Users/Cultofmetatron/projects/d3/clock.html
<!doctype html>
<html>
<head>
<title>clock</title>
<style type="text/css" media="screen">
.container {
width: 800px;
margin: auto;
}
@cultofmetatron
cultofmetatron / gist:5349630
Created April 9, 2013 21:38
passport ajax capable authenticate
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(
[[[[[ ~/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)
@cultofmetatron
cultofmetatron / tmux.conf
Created February 21, 2013 21:43
tmux conf
set -g prefix C-a
unbind C-b