Skip to content

Instantly share code, notes, and snippets.

View t4sk's full-sized avatar
🏠
Working from home

t4sk

🏠
Working from home
View GitHub Profile
@t4sk
t4sk / import-priv-key.md
Last active January 19, 2017 13:49
How to import private key into bitcoin-qt

How to import private key into bitcoin-qt

1. Convert private key to WIF

Click here to covert private key to WIF

In this example

  • private key = 619c335025c7f4012e556c2a58b2506e30b8511b53ade95ea316fd8c3286feb9
  • WIF = 92KuV1Mtf9jTttTrw1yawobsa9uCZGbfpambH8H1Y7KfdDxxc4d
@t4sk
t4sk / a-usage.md
Last active December 19, 2023 18:17
gen_tcp and GenServer example in Elixir (1.5.2)

gen_tcp and GenServer example in Elixir (1.5.2)

Usage

server.ex

Server.start

Keybase proof

I hereby claim:

  • I am t4sk on github.
  • I am t4sk (https://keybase.io/t4sk) on keybase.
  • I have a public key ASBBLtnHpb6we3Je4w_ctTBa7p2XJXl0fDn2Yb9-fi04ggo

To claim this, I am signing this object:

@t4sk
t4sk / Wei.sol
Created March 12, 2019 04:59
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.5.3+commit.10d17f24.js&optimize=false&gist=
pragma solidity ^0.5.3;
contract Wei {
uint public oneEther = 1 ether;
function test() public pure {
assert(1 ether == 1e18 wei);
assert(1 wei == 1);
}
}

Keybase proof

I hereby claim:

  • I am t4sk on github.
  • I am tsknk (https://keybase.io/tsknk) on keybase.
  • I have a public key ASDyZ1hblodO_TVvXYnHmPsWLpqRbYlgG6xzpy0Br_8m7Qo

To claim this, I am signing this object:

@t4sk
t4sk / meaning-of-life.js
Created February 11, 2022 12:56
meaning of life
const Web3 = require("web3");
const assert = require("assert");
const web3 = new Web3();
const email = "[email protected]";
const COLORS = [
"red",
"blue",
"yellow",