Useful code

String.replaceAll():

String.prototype.replaceAll = function(str1, str2, ignore) {  
    return this.replace(new RegExp(str1.replace(/([\/\,\!\\\^\$\{\}\[\]\(\)\.\*\+\?\|\<\>\-\&])/g,"\\$&"),(ignore?"gi":"g")),(typeof(str2)=="string")?str2.replace(/\$/g,"$$$$"):str2);  
};

Node.js

Use npm behind proxy

npm config set proxy http://user:pass@server:port  
npm config set registry "http://registry.npmjs.org/"

References

Informational

Q&A

Asynchronous Programming

Performance

Testing

Framework

AngularJS

Logging

Components

Misc