Skip to content

Instantly share code, notes, and snippets.

View bynaki's full-sized avatar
๐Ÿ’‚โ€โ™‚๏ธ
I'll be back! ๐Ÿ‘

bynaki bynaki

๐Ÿ’‚โ€โ™‚๏ธ
I'll be back! ๐Ÿ‘
View GitHub Profile
@bynaki
bynaki / 1517f438ba5-7ac52151.md
Last active December 17, 2015 10:38
Node.js :: Gulp :: ํ•œ๋‹จ๊ณ„์”ฉ ๋”ฐ๋ผํ•˜๋ฉฐ gulp.js ์ตํžˆ๊ธฐ - ๋“ค์–ด๊ฐ€๋ฉฐ - gulp ์„ค์น˜ํ•˜๊ธฐ

:origin:

Node.js :: Gulp :: ํ•œ๋‹จ๊ณ„์”ฉ ๋”ฐ๋ผํ•˜๋ฉฐ gulp.js ์ตํžˆ๊ธฐ

์‚ฌ๋‚ด์— gulp.js๋ฅผ ์†Œ๊ฐœํ•˜๋Š” ๊ฐ•์˜๋ฅผ ์ค€๋น„ํ•˜๋ฉฐ ๋‹จ๊ณ„๋ณ„๋กœ gulp์˜ ์‚ฌ์šฉ๋ฐฉ๋ฒ•์„ ์ตํž ์ˆ˜ ์žˆ๋„๋ก ์˜ˆ์ œ๋ฅผ ๋งŒ๋“ค์–ด ๋ณด์•˜๋‹ค. ์•„์ฃผ ๊ธฐ์ดˆ์ ์ธ ๋ถ€๋ถ„๋งŒ ์งš๊ณ  ์žˆ์ง€๋งŒ ์ฒ˜์Œ ์ ‘ํ•˜๋Š” ์‚ฌ๋žŒ์ด ํ•œ๋‹จ๊ณ„์”ฉ ๋”ฐ๋ผ๊ฐ€๋‹ค๋ณด๋ฉด ๊ธฐ๋ณธ์ ์œผ๋กœ ๋งŽ์ด ์‚ฌ์šฉ๋˜๋Š” ์ˆ˜์ค€๊นŒ์ง€๋Š” ์–ด๋ ต์ง€ ์•Š๊ฒŒ ๋„๋‹ฌํ•  ์ˆ˜ ์žˆ๋„๋ก ์ค€๋น„ํ–ˆ๋‹ค.

๋“ค์–ด๊ฐ€๋ฉฐ

@bynaki
bynaki / 1517e9abca5-066d4673.md
Created December 7, 2015 22:42
JavaScript :: ECMAScript 6 - Introduction - ECMAScript 6 Fea

:origin:

JavaScript :: ECMAScript 6

Introduction

ECMAScript 6, also known as ECMAScript 2015, is the latest version of the ECMAScript standard. ES6 is a significant update to the language, and the first update to the language since ES5 was standardized in 2009. Implementation of these features in major JavaScript engines is underway now.

See the ES6 standard for full specification of the ECMAScript 6 language.

@bynaki
bynaki / 151655118f8-0c72de65.md
Created December 3, 2015 00:50
Node.js :: fs-extra - Why? - Installation - Usage - Methods

Node.js :: fs-extra

fs-extra adds file system methods that aren't included in the native fs module. It is a drop in replacement for fs.

Why?

@bynaki
bynaki / 15164cf8de0-75db5b3.md
Last active December 2, 2015 22:38
GitHub :: ์›น์‚ฌ์ดํŠธ ์ƒ์„ฑ ๋ฐฉ๋ฒ• - ์ฐธ๊ณ  ์‚ฌ์ดํŠธ

GitHub :: ์›น์‚ฌ์ดํŠธ ์ƒ์„ฑ ๋ฐฉ๋ฒ•

repository ์— gh-pages branch ๋ฅผ ๋งŒ๋“ค์–ด๋ผ.

์‚ฌ์ดํŠธ ์ฃผ์†Œ: http(s)://<username>.github.io/<projectname>

์ฐธ๊ณ  ์‚ฌ์ดํŠธ

@bynaki
bynaki / 15162a5ecc4-f31f2321.md
Last active October 8, 2017 16:58
Chai - Installation - Node.js - Browser - Assertion Styles -

:origin:

Chai

Installation

Chai is available for both node.js and the browser using any test framework you like. There are also a number of other tools that include Chai.

Node.js

@bynaki
bynaki / 1515eed1dc0-f75e2bea.md
Last active May 11, 2018 06:29
npm - --save ์˜ต์…˜ - --save-dev ์˜ต์…˜

npm

--save ์˜ต์…˜

$ npm install github --save

๋งŒ์•ฝ ํ˜„์žฌ ๊ฒฝ๋กœ์— package.json ์ด ์กด์žฌํ•˜๋ฉด ์•„๋ž˜์™€ ๊ฐ™์ด dependencies ํ•ญ๋ชฉ์— ์ž๋™์œผ๋กœ ํฌํ•จ๋œ๋‹ค.

npm

**** --save ์˜ต์…˜

@bynaki
bynaki / 1515be51de8-d345438f.md
Last active December 1, 2015 12:30
JavaScript :: Mocha - Installation - Getting Started - Synch

:origin:

JavaScript :: Mocha

Installation

Install with [npm]:

$ npm install -g mocha
@bynaki
bynaki / 1515abb8cf7-8339140a.md
Last active December 1, 2015 00:12
Node.js :: Assert - assert.fail(actual, expected, message, o

:origin:

Node.js :: Assert

์ด ๋ชจ๋“ˆ์„ ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜์—์„œ ์œ ๋‹› ํ…Œ์ŠคํŠธ๋ฅผ ์ž‘์„ฑํ•˜๋Š” ๋ฐ ์‚ฌ์šฉํ•˜๊ณ  require('assert')๋กœ ์ด ๋ชจ๋“ˆ์„ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ๋‹ค.

assert.fail(actual, expected, message, operator)

actual๊ณผ expected์˜ ๊ฐ’์„ ๋ณด์—ฌ์ฃผ๋Š” ์˜ˆ์™ธ๋ฅผ ๋˜์ง„๋‹ค. operator๋Š” ๋‘ ๊ฐ’์„ ๋ฌด์—‡์œผ๋กœ ๋น„๊ตํ–ˆ๋Š”์ง€ ํ‘œ์‹œํ•˜๋Š” ๊ฒƒ์ด๋‹ค. (์—ญ์ฃผ, operator๋Š” ๊ฒฐ๊ตญ Error.captureStackTrace๋กœ ๋„˜๊ฒจ์ง€๋Š”๋ฐ ๋ฌด์Šจ ์—ญํ• ์ธ์ง€ ์ดํ•ดํ•  ์ˆ˜ ์—†์Œ. ํ•˜์ง€๋งŒ assert.js์˜ ์ฝ”๋“œ๋ฅผ ๋ณด๋ฉด ๋ชจ๋‘ ์ŠคํŠธ๋ง์ด๋‹ค. ๋น„๊ตํ•˜๋Š” ๋ฐ ์‚ฌ์šฉํ•œ ํ•จ์ˆ˜๋‚˜ Operator ์ด๋ฆ„์ž„)