simple code snippets for node.js