본문 바로가기
반응형

분류 전체보기38

[C#] Drag and Drop 해서 폴더 안의 파일 리스트 보여주기 1. Drag and Drop을 이용하여 무엇을 만들것인가 listBox1에 폴더를 drag and drop 하면 폴더안의 파일 리스트를 listbox에 보여주고 label에는 drag and drop한 파일의 경로를 보여줌 2. Drag and Drop 하기 위한 listbox 속성 [도구상자]를 이용해 label과 listbox를 만들고 listbox의 속성값중 AllowDrop을 true로 변경한다 3. Drag and drop 전체 코드 listBox1_DragEnter : 파일을 drag해서 listbox안으로 들어갈때 호출되는 함수이며 마우스 effect를 바꿔 드래그 가능함을 보여주는 용도 listBox1_DragDrop : 파일을 drop 했을때 listbox에 파일 리스트를 보여주는용도 .. 2022. 2. 11.
[Android] AlarmManager를 이용한 반복적인 동작 구현 1. 언제 필요한가? 주기적으로 (10분 간격) 서버에 정보 요청하는데 Alarm이 적절하다고 생각해서 구현 2. 진행 과정 a. AlarmReceiver class 추가 (알람 이벤트를 받기 위한 broadcast receiver) b. AlarmManager로 알람 추가 및 삭제 코드 구현 a. AlarmReceiver class 추가 (알람 이벤트를 받기 위한 broadcast receiver) AlarmManager로 알람을 추가했을때 이벤트를 받기 위한 recevier를 추가한다. 예를 들어 1분뒤로 알람을 추가하면 알람 receiver가 1분뒤 호출되게 된다. 이때 어떤 alarm인지는 "requestCode"로 구분 되기 때문에 하나의 receiver로 모든 alarm을 분기해서 처리 할 수.. 2022. 2. 4.
[Node] post 구현 1. Route 파일 만들기 routes folder 밑에 InformationRoute.js를 만듬 - 아무이름이나 상관없음 그리고 아래 코드를 붙여 넣음 var express = require('express'); var router = express.Router(); /* POST */ router.post('/', function (req, res, next) { let result = 'call information'; res.send(result); }); router.post('/test', function (req, res, next) { let result = req.body.name; res.send(result); }); module.exports = router; 2. app.js .. 2021. 4. 18.
[Node로 binance api 사용하기] candle 정보 읽어오기 1. Node 프로젝트 만들기 developer-mango.tistory.com/5 [Node.js] Express로 프로젝트 만들기, Express-generator 1. Express란? 웹 서버에서 필요한 기능들을 미리 구현된 웹 프레임워크 이다. (라우팅, 세션, 템플릿 등) 2. Express-generator? Express만 설치할 수도 있는데 (ex npm install express --save) Express-generat.. developer-mango.tistory.com 2. node-binance-api 설치 npm install node-binance-api --save 아래 sample code로 이해 가능하면 아래걸 보는것도 추천 github.com/binance-excha.. 2021. 4. 18.
반응형