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
* { | |
font-family: "Noto Sans CJK KR DemiLight"; | |
} |
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
@font-face { | |
font-family: "굴림"; | |
src: local("Noto Sans CJK KR DemiLight"); | |
} | |
@font-face { | |
font-family: "돋움"; | |
src: local("Noto Sans CJK KR DemiLight"); | |
} |
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
co(function* () { | |
var a = yield new Promise(function(resolve, reject) { | |
setTimeout(() => resolve("ok"), 100); | |
}); | |
console.log("result: " + a); | |
var b = yield new Promise(function(resolve, reject) { | |
setTimeout(() => reject("fail"), 100); | |
}); | |
console.log("result: " + b); | |
}).catch(function(e) { |
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
// normalized(0-1) 단위 | |
// { average: 0.06, cpus: [ 0.06, 0.05, 0.05, 0.08 ] } | |
// warning: 부팅 이후의 값이므로, 실시간 측정은 불가능 | |
const cpustat = function () { | |
const cpus = os.cpus(); | |
const result = {}; | |
result.average = 0; | |
result.cpus = []; | |
for (let i = 0; i < cpus.length; i++) { |
OlderNewer