Skip to content

Instantly share code, notes, and snippets.

View tasuki's full-sized avatar

Vít Brunner tasuki

View GitHub Profile

Handshake usage notes

Get the api key: Bob > settings > Wallet > View API Key

CLI

$ hsw-rpc getwalletinfo --id=tasukiwallet --api-key=$API_KEY

$ curl http://x:"$API_KEY"@127.0.0.1:12039/wallet/tasukiwallet
two windows:
86f5,80x24,0,0{31x24,0,0,0,48x24,32,0,1}
three windows:
5b35,80x24,0,0{31x24,0,0[31x11,0,0,0,31x12,0,12,1],48x24,32,0,2}
@tasuki
tasuki / Minimal.elm
Created February 9, 2023 22:55
Minimal Ellie (for https://ellie-app.com/)
module Main exposing (main)
import Html exposing (text, div)
main = div [] [ text "hello bobo" ]
# The Dobble Algorithm - www.101computing.net/the-dobble-algorithm/
from random import shuffle
symbols = list("abcdefghijklmnopqrstuvwxyz0123456789")
numberOfSymbolsOnCard = 5
cards = []
n = numberOfSymbolsOnCard - 1
numberOfCards = n**2 + n + 1
@tasuki
tasuki / README.md
Created October 21, 2020 09:28 — forked from joyrexus/README.md
collapsible markdown

collapsible markdown?

CLICK ME

yes, even hidden code blocks!

print("hello world!")
#!/bin/bash
# info on usage, also we really are terribly sorry :S
if [ -z "$1" ] || [ -z "$2" ]; then
echo "We're terribly sorry, we forgot to ask you to accept the ToS for the Elastic Cloud."
echo "Your situation is unusual, and we're still working on a nicer interface to solve it."
echo "This script will help you accept the ToS and the privacy policy."
echo ""
echo "Please provide your email and password and run the script like:"
echo '$ bash accept_elastic_cloud_tos.sh "you@example.com" "password" '
-- Dependencies:
-- elm/browser 1.0.2
-- elm/core 1.0.3
-- elm/html 1.0.0
-- elm/random 1.0.0
-- mdgriffith/elm-ui 1.1.5
-- LesleyLai/elm-grid 1.0.0
-- elm-community/random-extra 3.1.0
module Main exposing (main)
@tasuki
tasuki / keybase.md
Created October 12, 2018 19:45
keybase.md

Keybase proof

I hereby claim:

  • I am tasuki on github.
  • I am tasuki (https://keybase.io/tasuki) on keybase.
  • I have a public key whose fingerprint is 29A8 F152 80F7 9EA6 D4DD F9C2 BAEB A7C6 9A65 E787

To claim this, I am signing this object:

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import scala.reflect.io.File
import org.deeplearning4j.nn.modelimport.keras.KerasModelImport
object Test {
def main(args: Array[String]): Unit = {
val simpleModel = """
{
"class_name" : "Model",
"config" : {