Skip to content

Instantly share code, notes, and snippets.

View shallwefootball's full-sized avatar
🗿
kick it Jackie Chan

DongKeon Kim / 김동건 shallwefootball

🗿
kick it Jackie Chan
View GitHub Profile
#!/usr/bin/env node
console.log('yay gist')
cardiovascular cerebral2 diabetes dyslipidemia2 hypertension
0.948282 0.947166 0.90131 0.701259 0.832679
0.981816 0.980884 0.964001 0.923641 0.956835
0.999997 1.000045 0.999979 0.999999 1.000014
@shallwefootball
shallwefootball / .block
Created March 18, 2019 08:20 — forked from d3indepth/.block
D3 curve explorer
license: gpl-3.0
height: 860
border: no
const switchBtnEl = document.getElementById('switchBtn');
const switchBtn$ = Rx.Observable.fromEvent(switchBtnEl, 'click');
const mergeEl = document.getElementById('mergeBtn');
const mergeBtn$ = Rx.Observable.fromEvent(mergeEl, 'click');
const goFetchFn = () => {
return Rx.Observable.fromPromise(
fetch('http://localhost:3000/gogo').then(res => {
console.log('goFetchFn');
@shallwefootball
shallwefootball / config.json
Created February 10, 2017 05:43
didn't mockReset created by shallwefootball - https://repl.it/Feas/8
{
"testRegex": ".*-test.js",
"testEnvironment": "node"
}
#제1조 <목적>
비가오나 눈이오나 즐기는 마음으로 공을 찬다.
# 제2조 <규정의 적용>
본 리그는 공찰래리그운영본부에서 제정한 ‘리그 규정’을 적용하며, 본 규정에서 없는
사항은 ‘FIFA’ 규정을 준용하고, 본 규정과 ‘FIFA의 규정으로 해석할 수 없거나 명문화 돼있지 않은 사항에 대해선 공찰래리그운영본부의 해석과 결정에 따른다.
{
"auto_complete": true,
"auto_indent": true,
"color_scheme": "Packages/One Dark Color Scheme/One Dark.tmTheme",
"default_encoding": "UTF-8",
"disable_formatted_linebreak": true,
"font_size": 16.0,
"highlight_modified_tabs": true,
"ignored_packages":
[
@shallwefootball
shallwefootball / .zshrc
Created October 16, 2015 01:37
dotfile
alias works="cd /Users/n3namos/workspace/"
alias proj="cd /Users/n3namos/workspace/perseusuf/Source/puf-core"
alias op="open ./"
alias psmt="ps aux | grep meteor"
alias mrs="meteor reset"

Understanding Javascript Constructors : CSS-TRICKS을 번역했습니다. 번역은 첨이니 양해바람

Understanding Javascript Constructors

생성자를 이해한다는 것은 자바스크립트를 이해하는데 있어 매우 중요한 일입니다. 다른 많은 언어와 달리, 자바스크립트는 클래스를 지원하지 않습니다만, 비슷한 기능을 하는 생성자를 가지고 있습니다. 이번 튜토리얼에서는 생성자 디테일하게 알아보고 어떻게 자바스크립트가 클래스들을 객체로 만들어 활용하는지를 볼것입니다.

생성자는 일반적인 함수(regular function)같습니다만 우리는 그것들은 new키워드와 함께 사용하고 있습니다. 여기 두가지타입의 constructors가 있습니다:네이티브 생성자 ArrayObject와 같은,

@shallwefootball
shallwefootball / .csscomb.json
Created September 7, 2015 04:07
sort order
{
"always-semicolon": true,
"block-indent": 2,
"color-case": "lower",
"color-shorthand": true,
"element-case": "lower",
"eof-newline": true,
"leading-zero": false,
"remove-empty-rulesets": true,
"space-after-colon": 1,