Skip to content

Instantly share code, notes, and snippets.

@clauudio
clauudio / introrx.md
Created September 22, 2016 13:23 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
@clauudio
clauudio / after_res_hooks.js
Created May 15, 2016 18:04 — forked from pasupulaphani/after_res_hooks.js
Mongoose connection best practices
var db = mongoose.connect('mongodb://localhost:27017/DB');
// In middleware
app.use(function (req, res, next) {
// action after response
var afterResponse = function() {
logger.info({req: req}, "End request");
// any other clean ups