일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
- 스크립트
- 데이터베이스
- DATABASE
- PostgreSQL
- DB
- JS
- 우분투
- 자바
- postgres
- Windows
- 자바스크립트
- python
- node
- 아틀라시안
- install
- java
- 파이썬
- ubuntu
- Atlassian
- 리눅스
- hamonikr
- javascript
- 노드
- 설정
- 하모니카
- 3.0
- script
- Linux
- 설치
- 윈도우
- Today
- Total
목록개발 (87)
LukeHan 의 잡다한 기술 블로그
function startTimer(duration, display){ var timer = duration, seconds; var interval = setInterval(function(){ seconds = parseInt(timer % 60, 10); seconds = seconds < 10 ? "0" + seconds : seconds; display.textContent = seconds; if(timer === 0){ clearInterval(interval); } if(--timer < 0){ timer = duration; } }, 1000); } startTimer(60, document.querySelector('#timeCount'));

javascript 를 사용하여 개발 중 일정 시간 지연시간을 적용할 필요가 있었다. for(var i=0; i
개발 진행 중 object 의 key 와 value 을 배열로 출력할 필요가 있어 아래와 같이 정리해 둔다. const obj = { a: 'luke' , b: 35 , c: true , d: {} }; 위와 같은 형식의 데이터 배열을 준비한다. console.log(Object.keys(obj)); // Array ["a", "b", "c", "d"] 위와 같이 Object.keys 메서드를 활용하면 key 정보를 배열로 출력 할 수 있다. console.log(Object.values(obj)); // Array ["luke", 35, true, Object { }] 위와 같이 Object.values 메서드를 활용하면 value 정보를 배열로 출력 할 수 있다. for(var key of Objec..
// byte to hex function toHexString(byteArray){ return Array.from(byteArray, function(byte){ return ('0' + (byte & 0xFF).toString(16)).slice(-2); }).join('') } // number to hex function dec2hex(num){ hexString = num.toString(16); return hexString; } // hex to number function hex2dec(hexString){ num = parseInt(hexString, 16); return num; } // char to ascii function char2ascii(numStr){ return numS..
//package.json { "name": "application", "version": "1.0.0", "description": "Desktop Application!", "main": "main.js", "scripts": { "start": "electron .", "build": "electron-builder --windows nsis:ia32" }, "author": "GitHub", "license": "CC0-1.0", "devDependencies": { "electron": "^23.1.2" } } // main.js const { app } = require('electron'); console.log(app.getVersion()); console.log(app.getName()..

NVM 이란? Node Version Manager 의 약자이고 여러 버전의 Node.js 설치 및 버전 관리를 지원해 주는 도구 Node.js 설치하기 이전에는 n 패키지를 통해 Node.js 설치를 지원하였으나, 더 이상 Windows 를 지원하지 않는다고 한다. 아래의 링크에서 직접 다운로드하여 설치 진행한다. Node.js Download : https://nodejs.org/en/ NVM for Windows 다운로드 Windows 용 NVM 은 아래의 Github 페이지에서 다운로드 받는다. NVM for Windows Github : https://github.com/coreybutler/nvm-windows Github 페이지의 README.md 항목을 확인해 보면 위와 같이 'Downlo..