Skip to content

Instantly share code, notes, and snippets.

@jameshih
jameshih / build_sign_polkadot_rawtx.ts
Created February 20, 2024 11:55 — forked from islishude/build_sign_polkadot_rawtx.ts
Polkadot transfer transaction build and sign(with SDK @polkadot/api@4.6.1 & Polkadot Node v0.8.30)
import { ApiPromise, WsProvider, Keyring } from "@polkadot/api";
import { expandMetadata } from "@polkadot/metadata";
import { stringCamelCase, u8aToHex } from "@polkadot/util";
import {
blake2AsHex,
cryptoWaitReady,
encodeAddress,
} from "@polkadot/util-crypto";
import type { SignerPayloadJSON, AnyJson } from "@polkadot/types/types";
version: '3.7'
services:
kibana:
container_name: kibana
image: docker.elastic.co/kibana/kibana:7.6.2
restart: always
environment:
ELASTICSEARCH_URL: http://es01:9200
ELASTICSEARCH_HOSTS: http://es01:9200
ports:

Keybase proof

I hereby claim:

  • I am jameshih on github.
  • I am jameshih (https://keybase.io/jameshih) on keybase.
  • I have a public key whose fingerprint is 6763 7E8D AF77 A5A0 A4A9 C8D8 6DF1 EB7E A468 A9B4

To claim this, I am signing this object:

# define a Stack data structure
class Stack:
def __init__(self):
self.items = []
def push(self,item):
self.items.append(item)
def pop(self):
return self.items.pop()
This post links my 3Box profile to my Github account! Web3 social profiles by 3Box.
✅ did:3:bafyreih3hhex645fsffhjwybt3c2y5mhvylhkctfnvrkiz6czft2xfqdiq ✅
Create your profile today to start building social connection and trust online at https://3Box.io/
hyper
@jameshih
jameshih / file
Created March 25, 2018 20:20
file
file
from scipy.misc import imread, imresize, imsave
from scipy.optimize import fmin_l_bfgs_b
from sklearn.preprocessing import normalize
import numpy as np
import time
import os
import argparse
import h5py
from keras.models import Sequential
var container;
var camera, scene, renderer, particle;
var mouseX = 0, mouseY = 0;
var speed = 100000;
var windowHalfX = window.innerWidth / 2;
var windowHalfY = window.innerHeight / 2;
init();
animate();
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<style>
body {
margin: 0;
overflow: hidden;
}