Created
December 29, 2010 20:04
-
-
Save DanielG/758995 to your computer and use it in GitHub Desktop.
Revisions
-
Daniel Gröber revised this gist
Dec 29, 2010 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -41,7 +41,7 @@ - exception: single line/empty function definition: `function(){}` - parameters have spaces after comma bla(b1, b2, b3); - when comma'd stuff needs to be broken up into multiple lines they are in front -
Daniel Gröber revised this gist
Dec 29, 2010 . 1 changed file with 10 additions and 9 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -44,12 +44,13 @@ bla(b1, b2, b3); - when comma'd stuff needs to be broken up into multiple lines they are in front { bla: 'bla' , bla2: 'bla' } or bla(blaaaaaaaaaaaaaaaaaaaaaaaaaaa , blaaaaaaaaaaaaaaaaa2) -
Daniel Gröber revised this gist
Dec 29, 2010 . 1 changed file with 29 additions and 29 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -3,53 +3,53 @@ - if's always have space before braces - if's always have braces if() { return; } - exception: `if(err) throw err;` - else aligns with if's closing brace if() { } else { } - multi command ifs must be multi line if(bla) { bla; doubleBla; } - exception: `if(err) { callback(err); return; }` - function definitions never have spaces before brackets - function definitions have a space before the opening brace function() { return; } or function bla() { return; } - exception: single line/empty function definition: `function(){}` - parameters have spaces after comma bla(b1, b2, b3); - when comma'd stuff needs to be broken up into multiple lines they are in front { bla: 'bla' , bla2: 'bla' } or bla(blaaaaaaaaaaaaaaaaaaaaaaaaaaa , blaaaaaaaaaaaaaaaaa2) -
Daniel Gröber revised this gist
Dec 29, 2010 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -3,15 +3,15 @@ - if's always have space before braces - if's always have braces if() { return; } - exception: `if(err) throw err;` - else aligns with if's closing brace if() { } else { -
Daniel Gröber revised this gist
Dec 29, 2010 . 1 changed file with 19 additions and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -9,6 +9,14 @@ - exception: `if(err) throw err;` - else aligns with if's closing brace if () { } else { } - multi command ifs must be multi line if(bla) { @@ -34,3 +42,14 @@ - parameters have spaces after comma bla(b1, b2, b3); - when comma'd stuff needs to be broken up into multiple lines they are in front { bla: 'bla' , bla2: 'bla' } or bla(blaaaaaaaaaaaaaaaaaaaaaaaaaaa , blaaaaaaaaaaaaaaaaa2) -
Daniel Gröber revised this gist
Dec 29, 2010 . 1 changed file with 14 additions and 14 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -11,26 +11,26 @@ - multi command ifs must be multi line if(bla) { bla; doubleBla; } - exception: `if(err) { callback(err); return; }` - function definitions never have spaces before brackets - function definitions have a space before the opening brace function() { return; } or function bla() { return; } - exception: single line/empty function definition: `function(){}` - parameters have spaces after comma bla(b1, b2, b3); -
Daniel Gröber revised this gist
Dec 29, 2010 . 1 changed file with 3 additions and 3 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -3,9 +3,9 @@ - if's always have space before braces - if's always have braces if () { return; } - exception: `if(err) throw err;` -
Daniel Gröber revised this gist
Dec 29, 2010 . 1 changed file with 9 additions and 3 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -2,20 +2,24 @@ - 80 character max per line - if's always have space before braces - if's always have braces if () { return; } - exception: `if(err) throw err;` - multi command ifs must be multi line if(bla) { bla; doubleBla; } - exception: `if(err) { callback(err); return; }` - function definitions never have spaces before brackets - function definitions have a space before the opening brace function() { return; } @@ -26,5 +30,7 @@ return; } - exception: single line/empty function definition: `function(){}` - parameters have spaces after comma bla(b1, b2, b3); -
Daniel Gröber created this gist
Dec 29, 2010 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,30 @@ - 4 space indentation - 80 character max per line - if's always have space before braces - if's always have braces - exception: `if(err) throw err;` if () { return; } - multi command ifs must be multi line - exception: `if(err) { callback(err); return; }` if(bla) { bla; doubleBla; } - function definitions never have spaces before brackets - function definitions have a space before the opening brace - exception: single line/empty function definition: `function(){}` function() { return; } or function bla() { return; } - parameters have spaces after comma bla(b1, b2, b3);