Skip to content

Instantly share code, notes, and snippets.

View randomshinichi's full-sized avatar

Andrew Chiw randomshinichi

View GitHub Profile
makinami:~ shinichi$ brew doctor
Your system is ready to brew.
makinami:~ shinichi$ HOMEBREW_MAKE_JOBS=1 VERBOSE=1 brew search node
Error: unknown version :intel
Please report this bug:
https://github.com/mistydemeo/tigerbrew/wiki/troubleshooting
/usr/local/Library/Homebrew/os/mac/version.rb:19:in `from_symbol'
/usr/local/Library/Homebrew/os/mac/version.rb:18:in `fetch'
/usr/local/Library/Homebrew/os/mac/version.rb:18:in `from_symbol'
/usr/local/Library/Homebrew/requirements/minimum_macos_requirement.rb:7:in `initialize'
Verifying my Blockstack ID is secured with the address 17mZRg8ChXfYNH6Ck5zMEpakWMtWavEnT9 https://explorer.blockstack.org/address/17mZRg8ChXfYNH6Ck5zMEpakWMtWavEnT9
Verifying my identity on Peepeth.com 0x85ed40dbca94b5bc73c6c7ec7f4ecaad04a03a22
@randomshinichi
randomshinichi / lifesim2.ipynb
Last active February 21, 2020 16:09
Lifesim 2 income simulator
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@randomshinichi
randomshinichi / girlsim.ipynb
Last active February 23, 2020 16:34
Girlsim
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@randomshinichi
randomshinichi / hello.hs
Created April 4, 2020 21:45
problematic Haskell code
inputToNum :: String -> Num
inputToNum msg = do
putStr msg
i <- getLine
let o = read i :: Int
return o
nameDo :: IO ()
nameDo = do
base <- inputToNum "The base? "
{-# LANGUAGE OverloadedStrings #-}
tupleFromInputString :: String -> Maybe (String, String, Integer)
tupleFromInputString input =
if length stringComponents /= 3
then Nothing
else Just (stringComponents !! 0, stringComponents !! 1, age)
where
stringComponents = words input
age = (read (stringComponents !! 2) :: Integer)
I[2020-05-18|20:24:54.357] ✘ [gameofzoneshub-1b]@{0} - msg(0:update_client,1:connection_open_try) err(undefined: internal)
{"height":"0","txhash":"E4C8427EE4EB9140679B2DB8C29E358D244F87D69BB1D27B476691B32522240B","codespace":"undefined","code":1,"raw_log":"internal error","gas_wanted":"200000","gas_used":"73005"}
I[2020-05-18|20:25:04.045] - [gameofzoneshub-1b]@{0}conn(fuvlsvstdk)-{STATE_UNINITIALIZED_UNSPECIFIED} : [ape_smash-1b]@{22}conn(ofsqqeycob)-{STATE_INIT}
I[2020-05-18|20:25:04.366] - [gameofzoneshub-1b] -> sending transaction:
[{"type":"ibc/client/tendermint/MsgUpdateClient","value":{"client_id":"gameofzonesclient","header":{"signed_header":{"header":{"version":{"block":"10","app":"0"},"chain_id":"ape_smash-1b","height":"23","time":"2020-05-18T18:24:54.021866537Z","last_block_id":{"hash":"CE9BEA8D16023F370EA61CE2361441DC34C63227EE854AE63C80340DA85FA7F0","parts":{"total":"1","hash":"F71101535724F62838D585CB7920F090F479B1CB216AF832365DB7EC1AFA461C"}},"last_commit_hash":"B7FB7C4A929335E4F6D2ED70FEF8EC38
import axios from "axios"
import { SigningCosmWasmClient } from "@cosmjs/cosmwasm-stargate";
// TODO: Extract to separate folder: interfaces and funcs
interface Balances {
readonly address: string
readonly amount: string // decimal as string
}