Skip to content

Instantly share code, notes, and snippets.

Avatar

Andrew Chiw randomshinichi

View GitHub Profile
View gist:a92e30f9ce5cf390b16fad068c3152b5
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
View functors.hs
{-# 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)
@randomshinichi
randomshinichi / hello.hs
Created Apr 4, 2020
problematic Haskell code
View hello.hs
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? "
View girlsim.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@randomshinichi
randomshinichi / lifesim2.ipynb
Last active Feb 21, 2020
Lifesim 2 income simulator
View lifesim2.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View Verifying my Peepeth
Verifying my identity on Peepeth.com 0x85ed40dbca94b5bc73c6c7ec7f4ecaad04a03a22
View gist:3baf98dbaf61a79bb36d0413203c02fb
Verifying my Blockstack ID is secured with the address 17mZRg8ChXfYNH6Ck5zMEpakWMtWavEnT9 https://explorer.blockstack.org/address/17mZRg8ChXfYNH6Ck5zMEpakWMtWavEnT9
View searchfail
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'