https://www.metabase.com
주사용언어: closure
라이센스: AGPL
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
var factorial = function(n) { | |
if (n === 1) { | |
return 1; | |
} | |
return n * factorial(n -1); | |
} | |
console.log(factorial(5)); |
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
Function.prototype.curry = function() { | |
var slice = Array.prototype.slice; | |
var args = slice.apply(arguments); | |
console.dir(slice); | |
var that = this; | |
return function() { | |
return that.apply(null, args.concat(slice.apply(arguments))); | |
} |
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
String repeatTxt = String.join("", Collections.nCopies(10, "*")); | |
//output: ********** |
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
def generateNum(inputNumber): | |
sumResult = 0 | |
for n in str(inputNumber): | |
sumResult = sumResult + int(n) | |
return sumResult + inputNumber | |
ORIGIN = set(range(1,5001)) | |
FILTER = set([generateNum(n) for n in range(1, 5001)]) |
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
String result7 = new BufferedReader(new InputStreamReader(inputStream)).lines().collect(Collectors.joining("\n")); |
hichart (https://www.highcharts.com/)
chart.js (https://www.chartjs.org/)
tuichart (https://github.com/nhnent/tui.chart)
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
~.getTimestamp().toLocalDateTime().format(DateTimeFormatter.ISO_LOCAL_DATE) |
OlderNewer