Skip to content

Instantly share code, notes, and snippets.

Code

const fromSlpAddress = 'simpleledger:qp...'
const fromWIF = 'Kw...'
const toSlpAddress = 'simpleledger:qp...'

// Group NFT
const TOKENID = '4c689b3e716764aa76df2edd6c0ffd3932d16a826c7fca8bb28473d9f23d3329'

Code

const BITBOX = require('bitbox-sdk').BITBOX
const { GrpcClient } = require('grpc-bchrpc-node')
// it was 'bchd.ny1.simpleledger.io' below
const client = new GrpcClient({ url: 'bchd.greyh.at:8335' })
const validator = new slpjs.BchdValidator(client)
const bchdNetwork = new slpjs.BchdNetwork({ BITBOX, client, validator })
const tokenId = 'fa6c74c52450fc164e17402a46645ce494a8a8e93b1383fa27460086931ef59f'
const fs = require("fs")
const BITBOXSDK = require('bitbox-sdk')
const { GrpcClient } = require('grpc-bchrpc-node')
const slpjs = require('slpjs')
const bchaddr = require('bchaddrjs-slp')
const BigNumber = require('bignumber.js')
const NETWORK = 'mainnet'
const bitbox =
@zh
zh / webpacker_rails.md
Created March 19, 2020 08:34 — forked from maxivak/webpacker_rails.md
Webpack, Yarn, Npm in Rails

Fast Clojure Hello World Using GraalVM On Mac

Performance

Version Command Time (seconds)
Java time java -jar target/fastclj-1.0-standalone.jar 1.354
GraalVM time ./fastclj-1.0-standalone 0.014

Details

Keybase proof

I hereby claim:

  • I am zh on github.
  • I am zhesto (https://keybase.io/zhesto) on keybase.
  • I have a public key ASC56zloWAyeCWQJZVYS-nH92j_bAyJflzGTlz45VGUvbgo

To claim this, I am signing this object:

@zh
zh / learn.lua
Last active August 29, 2015 14:19 — forked from tylerneylon/learn.lua
-- Two dashes start a one-line comment.
--[[
Adding two ['s and ]'s makes it a
multi-line comment.
--]]
----------------------------------------------------
-- 1. Variables and flow control.
----------------------------------------------------
require 'net/http'
class HttpClient
def initialize(base_url, username = nil, password = nil)
@base_url = base_url
@username = username
@password = password
end
def get(path, headers = {})
#!/usr/bin/env python
# encoding: utf-8
"""
movie_recommender.py
Created by Thomas Cabrol on 2012-04-06.
Copyright (c) 2012 __MyCompanyName__. All rights reserved.
"""
import csv