-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
de9265b
commit bc41ec7
Showing
13 changed files
with
179 additions
and
82 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
root = true | ||
|
||
[*] | ||
indent_style = tab | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* text=auto |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
|
||
# Directories # | ||
############### | ||
build/ | ||
reports/ | ||
dist/ | ||
|
||
# Node.js # | ||
########### | ||
/node_modules/ | ||
|
||
# Git # | ||
####### | ||
.git* |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
{ | ||
"bitwise": false, | ||
"camelcase": false, | ||
"curly": true, | ||
"eqeqeq": true, | ||
"es3": false, | ||
"forin": true, | ||
"freeze": true, | ||
"immed": true, | ||
"indent": 4, | ||
"latedef": "nofunc", | ||
"newcap": true, | ||
"noarg": true, | ||
"noempty": false, | ||
"nonbsp": true, | ||
"nonew": true, | ||
"plusplus": false, | ||
"quotmark": "single", | ||
"undef": true, | ||
"unused": true, | ||
"strict": true, | ||
"maxparams": 10, | ||
"maxdepth": 5, | ||
"maxstatements": 100, | ||
"maxcomplexity": false, | ||
"maxlen": 1000, | ||
"asi": false, | ||
"boss": false, | ||
"debug": false, | ||
"eqnull": false, | ||
"esnext": false, | ||
"evil": false, | ||
"expr": false, | ||
"funcscope": false, | ||
"globalstrict": false, | ||
"iterator": false, | ||
"lastsemic": false, | ||
"laxbreak": false, | ||
"laxcomma": false, | ||
"loopfunc": false, | ||
"maxerr": 1000, | ||
"moz": false, | ||
"multistr": false, | ||
"notypeof": false, | ||
"proto": false, | ||
"scripturl": false, | ||
"shadow": false, | ||
"sub": true, | ||
"supernew": false, | ||
"validthis": false, | ||
"noyield": false, | ||
"browser": true, | ||
"browserify": true, | ||
"couch": false, | ||
"devel": true, | ||
"dojo": false, | ||
"jasmine": false, | ||
"jquery": false, | ||
"mocha": true, | ||
"mootools": false, | ||
"node": true, | ||
"nonstandard": false, | ||
"prototypejs": false, | ||
"qunit": false, | ||
"rhino": false, | ||
"shelljs": false, | ||
"worker": false, | ||
"wsh": false, | ||
"yui": false, | ||
"globals": {} | ||
} |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,12 @@ | ||
language: node_js | ||
node_js: | ||
- "0.10" | ||
- '0.12' | ||
- '0.11' | ||
- '0.10' | ||
- '0.8' | ||
- 'iojs' | ||
before_install: | ||
- npm update -g npm | ||
after_script: | ||
- npm run coveralls | ||
- npm run coveralls | ||
|
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,65 +1,34 @@ | ||
'use strict'; | ||
|
||
// INCREMENTAL MAX // | ||
|
||
/** | ||
* FUNCTION: incrmax() | ||
* Returns a method to compute the maximum value incrementally. | ||
* | ||
* COMPUTE: incrmax | ||
* | ||
* | ||
* DESCRIPTION: | ||
* - Provides a method to compute a maximum value incrementally. | ||
* | ||
* | ||
* NOTES: | ||
* [1] | ||
* | ||
* | ||
* TODO: | ||
* [1] | ||
* | ||
* | ||
* LICENSE: | ||
* MIT | ||
* | ||
* Copyright (c) 2014. Athan Reines. | ||
* | ||
* | ||
* AUTHOR: | ||
* Athan Reines. kgryte@gmail.com. 2014. | ||
* | ||
* @returns {Function} method to compute the max incrementally | ||
*/ | ||
|
||
(function() { | ||
'use strict'; | ||
|
||
// INCREMENTAL MAX // | ||
|
||
function incrmax() { | ||
var max = null; | ||
/** | ||
* FUNCTION: incrmax() | ||
* Returns a method to compute the maximum value incrementally. | ||
* FUNCTION: incrmax( [value] ) | ||
* If a `value` is provided, updates and returns the updated max. If no `value` is provided, returns the current max. | ||
* | ||
* @returns {Function} method to compute the max incrementally | ||
* @param {Number} [value] - value used to update the max | ||
* @returns {Number} max value | ||
*/ | ||
function incrmax() { | ||
var max = null; | ||
/** | ||
* FUNCTION: incrmax( [value] ) | ||
* If a `value` is provided, updates and returns the updated max. If no `value` is provided, returns the current max. | ||
* | ||
* @param {Number} [value] - value used to update the max | ||
* @returns {Number} max value | ||
*/ | ||
return function incrmax( x ) { | ||
if ( !arguments.length ) { | ||
return max; | ||
} | ||
if ( x > max || max === null ) { | ||
max = x; | ||
} | ||
return function incrmax( x ) { | ||
if ( !arguments.length ) { | ||
return max; | ||
}; | ||
} // end FUNCTION incrmax() | ||
|
||
} | ||
if ( x > max || max === null ) { | ||
max = x; | ||
} | ||
return max; | ||
}; | ||
} // end FUNCTION incrmax() | ||
|
||
// EXPORTS // | ||
|
||
module.exports = incrmax; | ||
// EXPORTS // | ||
|
||
})(); | ||
module.exports = incrmax; |
This file contains 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
Oops, something went wrong.