전체

· WEB/Node.js
[NodeJS] 디렉토리 안에 디렉토리인 것만 찾기 fs 모듈에서 디렉토리 안을 읽는 readdirSync 과 디렉토리인지 검사하는 isDirectory 함수를 사용해서 간단하게 만들 수 있다. 먼저, readdirSync 을 보면 옵션으로 withFileTypes가 있고, 기본값은 false이지만, true로 추가해 주면 결과에 fs.Dirent 객체가 포함된다고 한다. isDirectory 는 stats.isDirectory() 와 dirent.isDirectory() 두 가지가 있다. 1. stats.isDirectory()는 stat 객체가 디렉토리인지 체크하는 함수이며, 아래와 같이 디렉토리를 체크할 수 있다. fs.lstatSync('파일').isDitectory() fs.lstat('파일')..
· WEB
[WEB] 코드 정렬 사이트 HTML/CSS/JS 코드를 아름답게?! 정렬해주는 사이트 https://beautifier.io/ Online JavaScript beautifier beautifier.io
· WEB/PHP
[PHP] php 코드 자동 정렬해주는 사이트 PHP코드를 아름답게?! 만들어주는 사이트. STYLE에서 정렬 방식(규칙)을 선택 한 후 INPUT에 코드를 넣고, 하단에 Format 버튼을 누르면 된다. http://www.phpformatter.com/ PHP Formatter - PHP Beautifier - PHP Pretty Printer - Home www.phpformatter.com
· 기타
[Git] 브랜치(branch)삭제하기 로컬 브랜치 삭제 $ git branch -D 브랜치명 원격 브랜치 삭제 $ git push origin :브랜치명
[Python] 설치된 패키지 목록 requirements.txt 만들기 가상환경(venv)이나 현재 python에 pip으로 설치된 패키지 목록에 대한 정보를 requirements.txt 로 만들기 위해서는 freeze 명령어를 사용하면 된다. $ pip freeze > requirements.txt requirements.txt의 패키지들을 모두 설치하기 위해서는 아래 명령어를 이용하면 된다. $ pip install -r requirements.txt [참고] https://docs.python.org/ko/3/tutorial/venv.html
[MongoDB] 온라인 MongoDB Terminal 간단한 mongodb 쿼리 테스트를 위한 온라인 몽고디비 터미널 https://www.jdoodle.com/online-mongodb-terminal JDoodle - free Online Compiler, Editor for Java, C/C++, etc JDoodle is a free Online Compiler, Editor, IDE for Java, C, C++, PHP, Perl, Python, Ruby and many more. you can run your programs on the fly online and you can save and share them with others. Quick and Easy way to compile ..
S0PH1A
'분류 전체보기' 카테고리의 글 목록 (15 Page)