This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Node script to dedupe an array in a file. | |
* | |
* Prereqs: lodash (globally) | |
* | |
* Use: | |
* > node dedupe.js path/to/file.js [path/to/newfile.js] | |
*/ | |
var fs = require('fs'), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Hey all, | |
During our meeting, Seth asked me what all the differences were between the vanilla IdiomaticJS standard and the LinkedIn idiomatic JS standard. I didn't feel I gave a very sufficient answer, so I decided to run the diff myself and cull out the JS@LinkedIn agreed-upon changes (plus, frankly, it's something I should just know): | |
1. args in parentheses will not internally wrap spacing: | |
for ( i in bar ) { ... | |
becomes | |
for (i in bar) { ... | |
if ( foo === bar ) { ... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
if ! type "node" > /dev/null; then | |
echo " " | |
echo "Node not installed. Please visit http://nodejs.org to download and install the correct Node package." | |
exit 1 | |
else | |
echo " " | |
echo "Node installed correctly; continuing..." | |
fi |
NewerOlder