Skip to content

Instantly share code, notes, and snippets.

@hoakbuilds
hoakbuilds / index.html
Created October 17, 2018 02:46
Personal Website - Anime.js
<div class="loader"></div>
<div class="container">
<div class="name">
<div class="left">
<span> H</span>
<span id="name">ugo</span>
</div>
<div class="right">
<span> C</span>
@hoakbuilds
hoakbuilds / what.py
Last active October 31, 2018 01:54
Charts average bitcoin price across several exchanges and plots correlation between currencies
# coding: utf-8
# In[1]:
import os
import numpy as np
import pandas as pd
import pickle
import quandl
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Keybase proof

I hereby claim:

  • I am murlokito on github.
  • I am murlux (https://keybase.io/murlux) on keybase.
  • I have a public key ASBBmz1OUtccmPY3NKPxB_-6LB6si8c3B2KGA3ZPXAI1BAo

To claim this, I am signing this object:

@hoakbuilds
hoakbuilds / pubkey_to_addr.go
Created February 28, 2019 16:52 — forked from davecgh/pubkey_to_addr.go
Example of converting a raw public key to a btcutil.Address.
package main
import (
"fmt"
"github.com/btcsuite/btcd/chaincfg"
"github.com/btcsuite/btcutil"
)
func main() {
@hoakbuilds
hoakbuilds / 001-risk_manager.py
Created January 29, 2020 01:05
Python Script for Risk Management and Order Placement through Bitmex API
#If you enjoy using this script, I'd appreciate if you could use my
#Bitmex Referral here https://www.bitmex.com/register/x51NKV
#You save on fees and I get a little incentive to expand this tool further
#Thank you
#!/usr/bin/env python
# coding: utf-8
# In[ ]:
@hoakbuilds
hoakbuilds / ccxt_fetch_historical_dataset.py
Created November 7, 2020 18:54
ccxt fetch entire historical
import os
import sys
import time
import pandas as pd
from pandas import ExcelWriter
root = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
sys.path.append(root + '/python')
@hoakbuilds
hoakbuilds / CreateNonceAccount.cs
Created July 20, 2021 16:44
Solana - Create Nonce Account using Solnet
public class CreateNonceAccountExample : IExample
{
private static readonly IRpcClient rpcClient = ClientFactory.GetClient(Cluster.TestNet);
private const string MnemonicWords =
"route clerk disease box emerge airport loud waste attitude film army tray " +
"forward deal onion eight catalog surface unit card window walnut wealth medal";
public void Run()
{
@hoakbuilds
hoakbuilds / GetNonceFromNonceAccountData.cs
Last active July 20, 2021 17:10
Solana - GetNonceAccount
public class TransactionBuilderNonceExample : IExample
{
private static readonly IRpcClient rpcClient = ClientFactory.GetClient(Cluster.TestNet);
private static PublicKey NonceAccountKey = new ("3PwBSiCKoRRrA43W3MxqDgZcWz4StuhUUipFmXravAg1");
public void Run()
{
// Get the Nonce Account to get the Nonce to use for the transaction
RequestResult<ResponseValue<AccountInfo>> nonceAccountInfo = rpcClient.GetAccountInfo(NonceAccountKey);
Choose an example to run:
0)NameServiceProgramExamples
1)SolanaKeygenWallet
2)SolletKeyGeneration
3)SolletKeygenKeystore
4)TransactionBuilderExample
5)CreateInitializeAndMintToExample
6)TransferTokenExample
7)TransferTokenCheckedExample
8)CreateNonceAccountExample