ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
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++) { |
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
@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
* { | |
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
// Singleton | |
// | |
// declaration: | |
// public class A | |
// { | |
// public static A Instance { get { return Singleton<A>.Instance; } } | |
// public void foo(){} | |
// } | |
// | |
// usage: |
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
git branch --merged | grep -v "\*" | grep -v master | grep -v dev | xargs -n 1 git branch -d |
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
Show hidden characters
{ | |
"folders": | |
[ | |
{ | |
"follow_symlinks": true, | |
"path": ".", | |
"folder_exclude_patterns": ["Temp", "Extensions", "Plugins", "JsonDotNet", "ProjectSettings"], | |
"file_exclude_patterns": ["*.meta", "*.prefab", "*.mat", "*.asset"] | |
} | |
], |
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
# ~/.config/mpv/mpv.config | |
# 폰트 | |
sub-text-font="Apple SD Gothic Neo:style=Bold" | |
# 한글 출력 | |
sub-codepage="cp949" | |
# reference | |
http://mpv.io/manual/master/ |
NewerOlder