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 defaultArguments(func, defaults) { | |
return function () { | |
var params = Array.prototype.slice.call(arguments); | |
var args = func | |
.toString() | |
.match(/\((.*)\)/)[1] | |
.split(/\s*,\s*/) | |
.filter(Boolean) | |
.map(function (e, i) { return params[i] || defaults[e]; }); |
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 file_stats.js before.js ~/Desktop | |
Total lines count => 39 | |
Total token count => 212 | |
Tokens by fruequency: | |
. => 15 | |
= => 15 | |
; => 14 | |
cn => 12 |
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 file_stats.js after.js ~/Desktop | |
Total lines count => 82 | |
Total token count => 465 | |
Tokens by fruequency: | |
( => 49 | |
) => 49 | |
; => 30 | |
, => 28 |
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
before: | |
There are 2 functions in this file. | |
Function with the largest signature take 2 arguments, while the median is 1.5. | |
Largest function has 11 statements in it, while the median is 8. | |
The most complex function has a cyclomatic complexity value of 5 while the median is 4. | |
after: | |
There are 18 functions in this file. |
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
ln -s ~/.zshrc ~/.zprofile |
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
http/chunked.js | |
http/chunked.js num=1 size=1 c=100: 11335 | |
http/chunked.js num=1 size=64 c=100: 11092 | |
http/chunked.js num=1 size=256 c=100: 10797 | |
http/chunked.js num=4 size=1 c=100: 5760 | |
http/chunked.js num=4 size=64 c=100: 5616 | |
http/chunked.js num=4 size=256 c=100: 5675 | |
http/chunked.js num=8 size=1 c=100: 3637 | |
http/chunked.js num=8 size=64 c=100: 3723 | |
http/chunked.js num=8 size=256 c=100: 3649 |
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
http/chunked.js | |
http/chunked.js num=1 size=1 c=100: 11838 | |
http/chunked.js num=1 size=64 c=100: 11576 | |
http/chunked.js num=1 size=256 c=100: 11832 | |
http/chunked.js num=4 size=1 c=100: 6681.5 | |
http/chunked.js num=4 size=64 c=100: 6585.4 | |
http/chunked.js num=4 size=256 c=100: 6519.7 | |
http/chunked.js num=8 size=1 c=100: 4223.9 | |
http/chunked.js num=8 size=64 c=100: 4056.1 | |
http/chunked.js num=8 size=256 c=100: 4100.8 |