nodejs
Nothing to display jet.
Nothing to display jet.
nvm - node.js version manager
curl https://raw.github.com/creationix/nvm/master/install.sh | sh
Add the following line into ~/.zshrc or ~/.bashrc or whatever dotfiles your shell uses
[[ -s $HOME/.nvm/nvm.sh ]] && . $HOME/.nvm/nvm.sh # This loads NVM
Install latest Node.js
nvm install latest
it will useful when you want to read some file from installed node package for example you want to read "underscore-min.js" from "underscore" package for building browser code from node environment. More under the cut
It's useful when you want to write code that will execute with cake command from terminal and exports some functionality to use from other module More under the cut
How do you think, which way to accurately and more productive, create connection for each request More under the cut
Manually parsing year, month, day and week day. More under the cut
I just write mustache template engine for express 3.x. Supports partials, layouts and caching. https://github.com/vol4ok/hogan-express
This is little sample code that allow catch changes in dirs inside the target dir More under the cut
$ = {}
$ extends require 'fs'
$ extends require 'path'
$ extends require 'events'
$ extends require 'util'
#...
Advantages:
1. Shorter! Ex.: $.basename(...) v.s. path.basename() (and no need expand it to scope like this: {basename,dirname, extname, exists} = require 'path')
2. Less vars! Ex.: var $ v.s. var fs,path,util,events
Release fs.walker lib for #nodejs https://github.com/vol4ok/fs.walker
Simple example for the mongoose 'populate' feature: referencing objects from each other. More under the cut