Reference(s):
http://www.sourcegear.com/diffmerge/downloads.php - get the installer version, NOT the dmg version
Reference(s):
http://www.sourcegear.com/diffmerge/downloads.php - get the installer version, NOT the dmg version
| // Invoked once before first render | |
| componentWillMount() { | |
| console.log('componentWillMount'); | |
| // Calling setState here does not cause a re-render | |
| } | |
| // Invoked once after the first render | |
| componentDidMount(){ | |
| console.log('componentDidMount'); | |
| } |
| # Create your superuser | |
| $ mongo | |
| > use admin | |
| > db.createUser({user:"someadmin",pwd:"secret", roles:[{role:"root",db:"admin"}]}) | |
| > exit | |
| # Alias for convenience (optional and at your own risk) | |
| $ echo 'alias mongo="mongo --port 27017 -u someadmin -p secret --authenticationDatabase admin"' >> ~/.bash_profile | |
| $ source ~/.bash_profile |
| // === Arrays | |
| var [a, b] = [1, 2]; | |
| console.log(a, b); | |
| //=> 1 2 | |
| // Use from functions, only select from pattern | |
| var foo = () => { | |
| return [1, 2, 3]; |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <script src="jquery-1.9.0.js" ></script> | |
| <script src="handlebars-1.0.rc.2.js" ></script> | |
| <script src="underscore-1.4.4.js" ></script> | |
| <script src="backbone-0.9.10.js" ></script> |