Skip to content

Instantly share code, notes, and snippets.

View ENvironmentSet's full-sized avatar

Jaewon Seo ENvironmentSet

View GitHub Profile
@ENvironmentSet
ENvironmentSet / arguments.md
Last active January 30, 2019 23:04
You don't know arguments object
function problem1(a, b, c) {
  arguments[0] = 100;
  return [a, b, c];
}

problem1(1, 2, 3) // ๋ฐ˜ํ™˜๊ฐ’์„ ๋งž์ถ”์–ด ๋ณด์„ธ์š”!

์ •๋‹ต: [100, 2, 3]

@ENvironmentSet
ENvironmentSet / waitor.md
Last active December 14, 2018 11:48
Waitor Idea Sketch

Waitor

ํŠน์ • ์‹œ์ ๊นŒ์ง€ ํŠน์ • ๊ฐ์ฒด์— ๋Œ€ํ•œ ์—ฐ์‚ฐ์„ ๋ฏธ๋ฃจ๋Š” ๋ž˜ํผ ๊ฐ์ฒด

// Without Waitor
document.addEventListener('DOMContentLoaded', () => {
  console.log(document.getElementById('a').value);
});
@ENvironmentSet
ENvironmentSet / readme.md
Last active October 29, 2018 08:55
callbag korean readme

Origin

Callbag ๐Ÿ‘œ

๊ฐ€๋ฒผ์šด Observable ๊ณผ Iterable์„ ๊ตฌํ˜„ํ•  ์ˆ˜ ์žˆ๊ฒŒ ํ•˜๋Š” ์ž๋ฐ”์Šคํฌ๋ฆฝํŠธ์˜ ์ฝœ๋ฐฑ์„ ์œ„ํ•œ ํ‘œ์ค€

  • ์ตœ์†Œํ•œ์˜ ์˜ค๋ฒ„ํ—ค๋“œ๋ฅผ ๊ฐ€์ง€๊ณ  ์žˆ๋Š” ์ŠคํŠธ๋ฆผ, Iterable, Observable, AsyncIterable ๋“ฑ
  • Modular (๊ฐ๊ฐ์˜ ์˜คํผ๋ ˆ์ดํ„ฐ๋Š” ๊ทธ ์ž์ฒด๋กœ ํ•˜๋‚˜์˜ npm ํŒจํ‚ค์ง€์ž…๋‹ˆ๋‹ค.)
  • ๊ฐ€๋ฒผ์›€ (์ ์€ ๋ฉ”๋ชจ๋ฆฌ ํ• ๋‹น)
  • ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ๊ฐ€ ์•„๋‹™๋‹ˆ๋‹ค, ๊ทธ์ € ํ‘œ์ค€์ผ ๋ฟ์ž…๋‹ˆ๋‹ค. (๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ๋ฅผ ์ฐพ๊ณ  ๊ณ„์‹ ๋‹ค๋ฉด callbag-basics์„ ํ™•์ธํ•˜์‹œ๊ฑฐ๋‚˜ ์œ„ํ‚ค๋ฅผ ํ™•์ธํ•ด ์ฃผ์„ธ์š”.)
@ENvironmentSet
ENvironmentSet / readme.md
Last active October 29, 2018 09:22
callbag-basic korean readme

Origin

Callbag basics ๐Ÿ‘œ

๊ธฐ๋ณธ์ ์ธ callbag ํŒฉํ† ๋ฆฌ์™€ ์˜คํผ๋ ˆ์ดํ„ฐ๋“ค์„ ์ œ๊ณตํ•˜๋Š” ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ์ž…๋‹ˆ๋‹ค.

callbag-basics ์€ callbag ์ด๋ผ๋Š” ๋ช…์„ธ๋ฅผ ๋”ฐ๋ฅด๋Š” ํ•จ์ˆ˜๋“ค์„ ๊ตฌํ˜„ํ•œ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ์—์š”.

Callbag ์€ ๋ง์ด์ฃ ..:

@ENvironmentSet
ENvironmentSet / history-tteok.md
Created June 5, 2018 14:54
History Of Tteok

History Of Tteok

@ENvironmentSet
ENvironmentSet / ebnfLink.md
Created May 18, 2018 15:31
Whole EBNF gist links for Tteok
@ENvironmentSet
ENvironmentSet / literals.md
Last active May 20, 2018 14:45
EBNF of literals
numPrefix ::= 0x | 0b | 0o | nothing
floatNumber ::= numbers . numbers
fullNumber ::= numPrefix numbers | floatNumber
char ::= utf 8 char
chars ::= char chars | nothing
fullString ::= " chars "
@ENvironmentSet
ENvironmentSet / identifier.md
Last active May 18, 2018 15:38
EBNF of identifier
alphabet ::= A-z
alphabets ::= alphabet alphabets | nothing
number ::= 0-9
numbers ::= number numbers | nothing
specialChar ::= _ | ?
specialChars ::= specialChar specialChars | nothing
identifierHead ::= specialChar | alphabet
identifierBody ::= alphabets | numbers | specialChars
identifierBodys ::= identifierBody identifierBodys | nothing
@ENvironmentSet
ENvironmentSet / Stack.go
Created May 12, 2018 06:26
Simple Stack based on Go slice
package main
import "fmt"
type any interface {}
type Stack []any
func (stack *Stack) Push(elements ...any) Stack {
for _, element:= range elements {
@ENvironmentSet
ENvironmentSet / container.md
Last active June 6, 2018 08:54
EBNF of container

EBNF of identifier
EBNF of literal
์—ฐ์†๋œ 2๊ฐœ ์ด์ƒ์˜ space๋Š” ํ•œ๊ฐœ์˜ space๋กœ ์น˜ํ™˜๋ฉ๋‹ˆ๋‹ค. ๋ชจ๋“  ์ค„์€ trim ๋ฉ๋‹ˆ๋‹ค.(์ค„์˜ ์ฒซ ๋ฒˆ์งธ ๋ฌธ์ž๊ฐ€ space๊ฐ€ ์•„๋‹ˆ๊ณ , ๊ฐ€์žฅ ๋งˆ์ง€๋ง‰ ๋ฌธ์ž๊ฐ€ space๊ฐ€ ์•„๋‹ ๋•Œ ๊นŒ์ง€ ๋ชจ๋“  space๋ฅผ ์ œ๊ฑฐํ•จ์„ ์˜๋ฏธ.)

space ::= 'utf8 space character'
spaces ::= space spaces
expressions ::= expression spaces expressions
expression ::= container | literal | nothing