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
»» $ mocha --reporter nyan server.js | |
6 -_-_-_-_,------, | |
0 -_-_-_-_| /\_/\ | |
0 -_-_-_-^|__( ^ .^) | |
-_-_-_- "" "" | |
✔ 6 tests complete (196ms) |
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
function sample() { | |
if (condition1 === 'value1') { | |
if (condition2 === 'value2') { | |
if (condition3 === 'value3') { | |
throw 'wrong condition3'; | |
} else { | |
do_actual_work(); | |
and(); | |
return value(); | |
} |
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
if (date.before (SUMMER_START) || date.after(SUMMER_END)) | |
charge = quantity * _winterRate + _winterServiceCharge; | |
else | |
charge = quantity * _summerRate; |
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
»» $ jake cloc | |
http://cloc.sourceforge.net v 1.56 T=0.5 s (24.0 files/s, 1344.0 lines/s) | |
------------------------------------------------------------------------------- | |
Language files blank comment code scale 3rd gen. equiv | |
------------------------------------------------------------------------------- | |
Javascript 11 139 76 438 x 1.48 = 648.24 | |
Bourne Shell 1 5 1 13 x 3.81 = 49.53 | |
------------------------------------------------------------------------------- | |
SUM: 12 144 77 451 x 1.55 = 697.77 |
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
07/10 12:59:20 GMT+0700] MongoError: E11000 duplicate key error index: nodejitsudb90023846573.users.$entries.gistId_1 dup key: { : null } | |
[07/10 12:59:20 GMT+0700] at Db.wrap (/opt/haibu/apps/chakrit/refactor.io/package/node_modules/mongoose/node_modules/mongodb/lib/mongodb/db.js:1675:11) | |
[07/10 12:59:20 GMT+0700] at [object Object].<anonymous> (/opt/haibu/apps/chakrit/refactor.io/package/node_modules/mongoose/node_modules/mongodb/lib/mongodb/collection.js:297:26) | |
[07/10 12:59:20 GMT+0700] at [object Object].g (events.js:156:14) | |
[07/10 12:59:20 GMT+0700] at [object Object].emit (events.js:88:20) | |
[07/10 12:59:20 GMT+0700] at Db._callHandler (/opt/haibu/apps/chakrit/refactor.io/package/node_modules/mongoose/node_modules/mongodb/lib/mongodb/db.js:1290:25) | |
[07/10 12:59:20 GMT+0700] at /opt/haibu/apps/chakrit/refactor.io/package/node_modules/mongoose/node_modules/mongodb/lib/mongodb/connection/server.js:329:30 | |
[07/10 12:59:20 GMT+0700] at [object Object].parseBody (/opt/haibu/apps/chak |
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
function sample() { | |
if (condition1 === 'value1') { | |
if (condition2 === 'value2') { | |
if (condition3 === 'value3') { | |
throw 'wrong condition3'; | |
} else { | |
do_actual_work(); | |
and(); | |
return value(); | |
} |
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
if (date.before (SUMMER_START) || date.after(SUMMER_END)) | |
charge = quantity * _winterRate + _winterServiceCharge; | |
else | |
charge = quantity * _summerRate; |
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
asdfasdfaskl |
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
info: Welcome to Nodejitsu chakrit | |
info: It worked if it ends with Nodejitsu ok | |
info: Executing command databases create redis refactor.io.db | |
info: Database refactor.io.db was created. | |
error: Database does not exist | |
info: Nodejitsu ok |
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
if (date.before (SUMMER_START) || date.after(SUMMER_END)) | |
charge = quantity * _winterRate + _winterServiceCharge; | |
else | |
charge = quantity * _summerRate; |