Skip to content

Instantly share code, notes, and snippets.

@blueken
blueken / node_acl_example.js
Created December 19, 2017 06:40 — forked from danwit/node_acl_example.js
Authorization with node_acl + mongo + express
/**
* Simple node_acl example with mongoDB and expressjs
*
* Usage:
* 1. Start this as server
* 2. Play with the resoures
*
* Show all permissions (as JSON)
* http://localhost:3500/info
*
@blueken
blueken / introrx.md
Created May 13, 2016 08:41 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
function route(pathname, handler){
if(typeof handler[pathname] == "function"){
console.log(" this is route" + pathname);
handler[pathname]();
}else{
console.log('wrong request '+pathname);
}