목록전체 글 (1755)
오늘도 공부
출처 : https://stackoverflow.com/questions/29478751/how-to-cancel-an-emcascript6-vanilla-javascript-promise-chainWhile there isn't a standard way of doing this in ES6, there is a library called Bluebird to handle this.There is also a recommended way described as part of the react documentation. It looks similar to what you have in your 2 and 3rd updates.const makeCancelable = (promise) => { let ha..
https://ethereum.stackexchange.com/questions/28703/full-list-of-geth-terminal-commandsBy running geth and entering the start of each of the global objects I'm aware of I can get the following lists, but I won't mark this as the correct answer as I'm sure there is documentation out there somewhere.> eth.eth._requestManager eth.getBlockUncleCount eth.getWork eth.accounts eth.getCode eth.hashrate e..
5월 21일. 핫한 IT, 개발, Blockchain, 노마드 뉴스 TOP5 1. TOP 10 자바스크립트 에러 (5월 16일. code burst.) - 가장 흔한 자바스크립트 탑10 에러! - can not read property! - 어떻게 에러를 피하는지 팁 공개 2. 재택근무? 집에서 효율적으로 일하는 5가지 방법 (4월17일. Medium.) - 디지털노마드, 프리랜서라서 집에서 일하는 당신을 위한 팁 - 1번. 잠옷입고 일하지 마라 - 린이 추천합니다. 3. 봇을 만들며 알게된 7가지 레슨 (5월 18일. Hacker Noon.) - 트위터봇을 만든 개발자가 배운 7가지 레슨 - 1번. 타잎스크립트 까먹지마 4. 구글 자바스크립트 스타일 가이드 13가지 신박한 가이드 (3월 27일. fr..
윈도우 상에서 도커를 이용해서 몽고 DB 세팅윈도우상에서 몽고디비 설치시 가끔 오류 나는 부분이 있다. 그럼 설치도 안되고 개발도 안된다.그럴때 도커를 이용해서 빠르게 테스팅을 할수 있다.우선 도커를 켜서 다음 명령어를 하자.docker pull mongo docker run --name database -d -p 27017:27017 mongo --noauth --bind_ip=0.0.0.0 27017 포트에 0.0.0.0 으로 바인딩하는 문구이다.-noauth 는 아이디랑 비번없이 들어갈 수 있다.만약 설정시 아래와 같이 가능하다.docker run --name some-mongo -d mongo --auth docker exec -it some-mongo mongo admin db.createUse..
https://codehangar.io/mongodb-image-instance-with-docker-toolbox-tutorial/
[PowerMockup]개발을 할때에나 기획을 할때 늘 스토리보드를 보면서 서로 대화를 하면 잘 통한다. 사람은 글보단 그림이 좀 더 직관적이기 때문이다. 그래서 이번참에 목업툴 제대로 된걸 구해보자고 해서 찾아보았다. 우선 1순위는 파워목업이었다. 안에 슬라이스도 많고 꽤 쓸만한것 같다. 현재 버전 4점대로 나온것 같다. 그럼 한번 사용을 해보자. 우선 해당 홈페이지는 여기이다. https://www.powermockup.com/ 파워목업은 파워포인트가 깔려있어야 사용가능하다. 그럼 실제 스크린샷은 어떨까? 오른쪽 Shape 의 경우 아직 내가 정식유저가 아니다 보니 활성화가 다 안되어있다. 구입하는 경우 활성화 될거라 본다. 그럼 대충 이렇다 치고 구매는 어떻게 해야 할까?종류별로 다 있다. 유의할 ..
다트 기본온라인 다트 편집기에서 실행가능하다.https://dartpad.dartlang.org/함수편기본 출력void main() { var test = "test"; print('test = $test'); }기본값 설정void printMsg(String msg, [String value = 'undefined']) { print('msg = $msg, value = $value'); } void main() { printMsg('1234', '5678'); printMsg('1234'); } ........................ msg = 1234, value = 5678 msg = 1234, value = undefinedname, value 쌍으로 map 형태로 인수 넣기void pri..
Java for Dart Codelab다트는 타입이 있는 언어입니다.온라인에서 에디터를 실행 후 바로 테스팅이 가능합니다.https://dartpad.dartlang.org/다트를 특별하게 만드는 이유생성자를 만드는 방법매개 변수를 지정하는 다양한 방법getter , setter 를 만드는 방법 및 시기다트가 privacy 를 처리하는 방법팩토리를 만드는 방법다트에서 함수형 언어가 동작되는 방법다른 다트 콘셉 그럼 시작해보자.class Bicycle { int cadence; int speed; int gear; } void main() { } main 함수로 실행한다.만약 argument를 가지고 싶다면 main(List args) 를 사용할 수 있다.기본적으로 접근 제어자는 가지고 있지 않다. 예를 ..
https://github.com/bear2u/til/blob/master/blockchain/DAPP/%ED%81%AC%EB%A6%BD%ED%86%A0%ED%82%A4%ED%8B%B0%EC%86%8C%EC%8A%A4.md
Geth 설치 및 로컬에 세팅 (윈도우 기준)로컬 테스트넷에서 Geth 를 가동하기 위해선 두가지를 준비해야함데이터 디렉터리 ( chaindata )Genesis.json 파일윈도우 기반에서 진행한다.윈도우로 GETH 설치를 진행하자. https://geth.ethereum.org/downloads/genesis.json 을 만들자.{ "coinbase" : "0x0000000000000000000000000000000000000001", "difficulty" : "0x20000", "extraData" : "", "gasLimit" : "0x8000000", "nonce" : "0x0000000000000042", "mixhash" : "0x000000000000000000000000000000000..
