본문 바로가기

분류 전체보기138

[Git] git 특정 커밋 다운 1. clone repository git clone [your repository https or ssh]git clone git@github.com:seowlee/exchange-test.git 2. git log 확인git log원하는 커밋 복사 github에서 확인 할 경우-> 원하는 커밋 복사  3. 원하는 커밋 버전으로 받기git reset --hard [commit id]  참고 :https://ddbobd.tistory.com/entry/git-%ED%8A%B9%EC%A0%95%EB%B2%84%EC%A0%84-clone%ED%95%98%EA%B8%B0 2024. 5. 8.
[HD wallet] BIP32, BIP39, BIP44 What is BIP?BIP stands for Bitcoin Improvement Proposal. BIP32hierarchical deterministic wallets (or "HD Wallets") 을 설명함. HD Wallet에 대한 표준하나의 마스터 키로부터 생성된 자식 키를 위한 계층 구조를 제공. 각 계층은 인덱스(index) 값을 가지며, 하나의 마스터 키에서 무한히 많은 계층을 생성할 수 있다. 즉, 무수히 많은 지갑 주소를 생성할 수 있다. bip32: https://github.com/bitcoin/bips/blob/master/bip-0032.mediawiki  BIP39deterministic wallet 생성 시 기억하기 쉽게 니모닉 코드/문장의 구현을 설명함.mnemonic을.. 2024. 5. 8.
[Metamask] 메타마스크에 네트워크 추가하기 (Avalanche) 1. 네트워크 목록에서 추가 설정 - 네트워크 - 네트워크 추가네트워크 목록에서 추가할 네트워크의 추가 버튼 클릭 -> 승인 네트워크 목록에서 추가된 네트워크 확인  2. 네트워크 직접 추가 설정 - 네트워크 - 네트워크 추가네트워크 직접 추가 클릭 - 네트워크 정보 Avalanche mainnetNetwork Name: Avalanche Mainnet C-ChainNew RPC URL: https://api.avax.network/ext/bc/C/rpcChain ID: 43114Currency Symbol: AVAXBlock Explorer URL: https://snowtrace.io/Avalanche testnet (fuji)Network Name: Avalanche FUJI C-ChainNew R.. 2024. 5. 2.
[Node.js / Error] return process.dlopen(module, path.toNamespacedPath(filename)); Node.js app.js 실행 시 Error return process.dlopen(module, path.toNamespacedPath(filename)); ==> node_modlues 버전이 안맞아서 발생하는 error. rm -rf node_modules npm update 기존의 node_modlues 폴더 삭제 후 업데이트, 그리고 실행하면 잘 된다. 참고 : https://velog.io/@howooke/%EB%B0%B0%ED%8F%AC%EC%8B%9C-%EC%97%90%EB%9F%ACreturn-process.dlopenmodule-path.toNamespacedPathfilename 2024. 4. 8.
[Javascript] variable 과 !!variable - Double Exclamation Mark const res = variable const booleanRes = !!variable - !! (Double Exclamation Mark) !!variable 만약 variable이 null, undefined, 0, 빈 문자열 등의 falsy한 값이라면 강제 Boolean 변환 후에는 true가 되고, 이를 다시 부정 연산자로 적용하면 false가 됩니다. if (variable) if (!!variable) - if (variable) 와 if (!!variable) JavaScript에서 조건문을 사용하여 변수 variable의 값이 존재하는지 여부를 확인하는 코드. if (variable): 이 코드는 변수 variable이 존재하는지 여부를 확인. JavaScript에서는 falsy한 값.. 2024. 3. 6.
[Javascript] throw Error 와 console.error 차이 throw Error("msg"); console.error("msg"); Some of the Differences are: throw Error("msg"): Stops js execution. (실행 중인 JavaScript를 중단시킵니다.) Mostly used for code handling purpose. (주로 코드 처리 목적으로 사용됩니다.) Can alter main flow of execution. (주 실행 흐름을 변경할 수 있습니다.) This syntax is mostly same for all browser as this is specified and validated by W3C. (이 구문은 W3C에서 지정되어 검증되므로 대부분의 브라우저에서 거의 동일합니다.) console.. 2024. 2. 28.