Skip to content

Instantly share code, notes, and snippets.

View gcharang's full-sized avatar
🎯
Focusing

gcharang gcharang

🎯
Focusing
View GitHub Profile
@gcharang
gcharang / falsehoods-programming-time-list.md
Created August 24, 2023 11:44 — forked from timvisee/falsehoods-programming-time-list.md
Falsehoods programmers believe about time, in a single list

Falsehoods programmers believe about time

This is a compiled list of falsehoods programmers tend to believe about working with time.

Don't re-invent a date time library yourself. If you think you understand everything about time, you're probably doing it wrong.

Falsehoods

  • There are always 24 hours in a day.
  • February is always 28 days long.
  • Any 24-hour period will always begin and end in the same day (or week, or month).
const bitcoin = require("bitgo-utxo-lib");
const axios = require('axios');
// Set your Insight Explorer URL and wif key
const INSIGHT_URL = 'https://doc.dragonhound.info';
const wifKey = "";
/* missing declaration of KMD in bitgo-utxo-lib */
bitcoin.networks.kmd = {
messagePrefix: "\u0018Komodo Signed Message:\n",
d78fd284f63e68dc342ea379c1ecd650153e129a000000000000000121edcddfdee77126b9373a499a7be4bc65b2b0e2018a000000000008564f5445323032330008564f544532303233000000000000072333434434423811684c7509086a43841edf6bfdfae24aa84b0c9d0003010100391a8e97d8f8f8a9c8ee5298f8c6d8ef6e476eef0135000000640000746f006e2d61635f6e616d653d564f5445323032337c2d61635f7075626c69633d317c2d61635f737570706c793d3133393730363336317c2d61635f7374616b65643d31307c2d6164646e6f64653d3137382e3135392e322e367c2d6164646e6f64653d3138352e3232302e3230342e343400076b6f6d6f646f640059656c65637472756d312e63697069672e6e65743a31303030323a7463707c656c65637472756d322e63697069672e6e65743a31303030323a7463707c656c65637472756d332e63697069672e6e65743a31303030323a746370000969735f6b6f6d6f646f00002710cbb393e234c5d51863ecca7ccd275f55337741700034000f4b6f6d6f646f2f564f54453230323300102e6b6f6d6f646f2f564f544532303233000f4b6f6d6f646f2f564f544532303233
d78fd284f63e68dc342ea379c1ecd650153e129a000000000000000121edcddfdee77126b9373a499a7be4bc65b2b0e2016c000000000008564f5445323032330008564f544532303233000000000000072333434434423811684c7509086a43841edf6bfdfae24aa84b0c9d0003010100391a8e97d8f8f8a9c8ee5298f8c6d8ef6e476eef0117000000640000746f006e2d61635f6e616d653d564f5445323032337c2d61635f7075626c69633d317c2d61635f737570706c793d3133393730363336317c2d61635f7374616b65643d31307c2d6164646e6f64653d3137382e3135392e322e367c2d6164646e6f64653d3138352e3232302e3230342e343400076b6f6d6f646f64003b656c65637472756d332e63697069672e6e65743a32303030323a7463707c656c65637472756d322e63697069672e6e65743a32303030323a746370000969735f6b6f6d6f646f00002710cbb393e234c5d51863ecca7ccd275f55337741700034000f4b6f6d6f646f2f564f54453230323300102e6b6f6d6f646f2f564f544532303233000f4b6f6d6f646f2f564f544532303233
d78fd284f63e68dc342ea379c1ecd650153e129a000000000000000121edcddfdee77126b9373a499a7be4bc65b2b0e201690000000000074b49503030303100074b495030303031000000000000072333434434423811684c7509086a43841edf6bfdfae24aa84b0c9d0003010100391a8e97d8f8f8a9c8ee5298f8c6d8ef6e476eef0116000000640000b7080070222d61635f6e616d653d4b4950303030317c2d61635f7075626c69633d317c2d61635f737570706c793d3133393431393238347c2d61635f7374616b65643d31307c2d6164646e6f64653d3137382e3135392e322e367c2d6164646e6f64653d3131362e3230332e3132302e3136332200076b6f6d6f646f64003b656c65637472756d312e63697069672e6e65743a31303031343a7463707c656c65637472756d322e63697069672e6e65743a31303031343a746370000969735f6b6f6d6f646f00002710cbb393e234c5d51863ecca7ccd275f55337741700031000e4b6f6d6f646f2f4b495030303031000f2e6b6f6d6f646f2f4b495030303031000e4b6f6d6f646f5c4b495030303031
const bitcoin = require("bitgo-utxo-lib");
/* missing declaration of KMD in bitgo-utxo-lib */
bitcoin.networks.kmd = {
messagePrefix: "\u0018Komodo Signed Message:\n",
bech32: "bc",
bip32: { public: 76067358, private: 76066276 },
pubKeyHash: 60,
scriptHash: 85,
wif: 188,
const bitcoin = require("bitgo-utxo-lib");
`There are real wif keys and addresses in this gist, they are public, don't reuse them for holding any real coins`
/* missing declaration of KMD in bitgo-utxo-lib */
bitcoin.networks.kmd = {
messagePrefix: "\u0018Komodo Signed Message:\n",
bech32: "bc",
bip32: { public: 76067358, private: 76066276 },
pubKeyHash: 60,
@gcharang
gcharang / README.md
Created January 30, 2023 18:36 — forked from jackzampolin/README.md
Insight API Queries for Explorer

GET

Transactions by block and address

This endpoint returns full transaction data for blocks and Addresses

NOTE: there is an undocumented param to paginate, didn't go digging

[{
"name": "Komodo",
"type": "smartChain",
"proto": "SSL",
"abbr": "KMD",
"coingeckoId": "komodo",
"colorCoin": "0xFF326464",
"serverList": [
"electrum1.cipig.net:20001",
"electrum2.cipig.net:20001",

Keybase proof

I hereby claim:

  • I am gcharang on github.
  • I am gcharang (https://keybase.io/gcharang) on keybase.
  • I have a public key ASBDbcbaulMqmmEwTcnM1knlioFTk3vsDw2Ebbh9csLCgAo

To claim this, I am signing this object: