Posts
DarkwinD
Cancel

Array 다루기

배열 요소 추가/제거 Code const jbAry1 = [ 'one', 'two', 'three' ]; jbAry1.push( 'four' ); document.write( '<p>' + jbAry1.join( ' / ' ) + '</p>' ); const jbAry2 = [ 'one', 'two', 'three' ]; jb...

vim eslint 적용하기

vim eslint 적용하기 주력으로 자바스크립트(ECMA6) 사용하는 개발자라면 eslint를 global로 설치하는게 편합니다. 관련 모듈을 설치해 줍니다. $ npm install --global eslint \ eslint-config-airbnb \ bab...

Linux Note

Ubuntu Command 설치된 패키지 확인 dpkg -l Ubuntu의 패키지 관리 유틸리티인 dpkg를 이용하면 패키지를 제거할 수 있다. 옵션은 –remove, –purge의 2가지가 있는데 remove는 binary만 제거하고 설정 등의 데이터는 그대로 남겨둔다. remove를 할 경우에는 crontab의 설정이나 /etc/rc?.d ...

Fork Repository 동기화

Github 원본 repository 에서 업데이트 내용을 받아오기 위해 사용 현재 remote repository 확인 $ git remote -v origin https://github.com/YOUR_USERNAME/YOUR_FORK.git (fetch) origin https://github.com/YOUR_USERNAME/YOUR_FOR...

Mac Note

Delete .DS_Store 맥에서 원하는 위치 및 하위 디렉토리에서 .DS_Store 를 삭제하는 방법 find . -type f -name .DS_Store -print -delete

Moment 사용법

Moment Format Dates moment().format('MMMM Do YYYY, h:mm:ss a'); // June 19th 2018, 12:57:48 pm moment().format('dddd'); // Tuesday moment().format("MMM Do YY"); //...