전체 글 902

윈도우즈 터미널 우클릭 메뉴에 추가

스토어에서 windows terminal 받고 레지스트리 등록하고 Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\Directory\Background\shell\wt] @="명령 창 열기" "Icon"="%USERPROFILE%\\AppData\\Local\\terminal\\terminal.ico" [HKEY_CLASSES_ROOT\Directory\Background\shell\wt\command] @="C:\\Users\\gunil\\AppData\\Local\\Microsoft\\WindowsApps\\wt.exe -d ." wt.exe 다음에 -d . 이게 있어야 현재 우클릭한 폴더에서 열린다. 아이콘 위치 주의 첨부파일 참조

프로그래밍 2020.06.26

node.js 비동기 모듈 작업

/* 1. start 2. end 3. abc_async 순으로 동작하도록 짜려고함 */ var mymodule = require('./mymodule'); console.log("start"); mymodule.abc_async(); console.log("end"); 모듈쪽내용 /* mymodule.js 내용 */ async function abc_async() { console.log("abc_async start"); await sleep(1000); console.log("abc_async end"); } const sleep = async (ms) => { return new Promise(resolve=>{ setTimeout(resolve,ms) }) } module.exports.abc_..