Skip to content

Instantly share code, notes, and snippets.

@is
is / ev0.py
Created September 20, 2022 07:11
#!/usr/bin/python3
import os
import sys
import glob
import csv
import json
__version__ = '0.0.1'
@is
is / 4_ens.js
Created July 13, 2021 15:45
deploy ens contract
/*
https://www.trufflesuite.com/docs/truffle/getting-started/running-migrations
https://docs.ens.domains/deploying-ens-on-a-private-chain
https://www.trufflesuite.com/docs/truffle/reference/truffle-commands#migrate
*/
const utils = require('web3-utils');
const namehash = require('eth-ens-namehash');
const tld = "test";
@is
is / S0.java
Created July 16, 2020 14:40
S0.java
// Notice: Junit5 as ut framework.
import org.junit.jupiter.api.Test;
import java.util.Arrays;
import java.util.Collections;
import java.util.LinkedList;
import java.util.List;
import java.util.stream.Collectors;
import static org.junit.jupiter.api.Assertions.assertEquals;
@is
is / a.txt
Last active March 18, 2020 17:45
set VERSION = 20.20.20
@is
is / stdout
Created August 9, 2018 15:56
vector::push_back vs vector::emplace_back
Constructor 0x7fffad4b75d0:A0,0
--1--
Copy constructor 0x55b854a6ee70:A0,0
16
--2--
Constructor 0x7fffad4b7600:push,10
Copy constructor 0x55b854a6ee98:push,10
Destructor 0x7fffad4b7600:push,10
16
--3--
@is
is / blockstack
Created March 7, 2018 14:28
blockstack anchor
Verifying my Blockstack ID is secured with the address 1Q7wBV7Vv2M59cRoUVKtd59BfNcgpftVpz https://explorer.blockstack.org/address/1Q7wBV7Vv2M59cRoUVKtd59BfNcgpftVpz
@is
is / oss_0.go
Last active October 15, 2017 11:21
G27 - OSS Golang demo
package main
import (
"fmt"
"os"
"reflect"
"strconv"
"github.com/aliyun/aliyun-oss-go-sdk/oss"
)
@is
is / s0.py
Last active October 9, 2017 14:48
P25 - sonic python sample.
# pylint: disable=W0311,W0613,C0111,C0103
from sanic import Sanic, response
#from sanic.response import json
app = Sanic('S0', log_config=None)
@app.route('/')
async def index(request):
data = {'message': 'hello world'}
return response.json(data)