Skip to content

Instantly share code, notes, and snippets.

View normalize_dict.py
import unicodedata
hankaku_alphabet = "".join(chr(0x21 + i) for i in range(94))
zenkaku_alphabet = "".join(chr(0xff01 + i) for i in range(94))
translate_table = str.maketrans(hankaku_alphabet, zenkaku_alphabet)
original_dict = "/path/to/naist-jdic.csv"
normalized_dict = "/path/to/normalized.csv"
def text_normalize(text: str):
View gist:8b64f4efdacca3e537be836ebb106ef6
[
{
"constant": true,
"inputs": [
{
"name": "interfaceId",
"type": "bytes4"
}
],
"name": "supportsInterface",
View nft_abi.json
[
{
"constant": true,
"inputs": [
{
"name": "interfaceId",
"type": "bytes4"
}
],
"name": "supportsInterface",
View example.sol
pragma solidity 0.5.4;
contract helloWorld {
string data;
function pureHelloWorld() public pure returns(string memory) {
return "hello world";
}
function readStrData() external view returns(string memory) {
return data;
}
function sendStrData(string memory sendData) public {
@takana-v
takana-v / getblocktemplate.json
Created Apr 11, 2021
getblocktemplate "{\"rules\": [\"segwit\"]}"
View getblocktemplate.json
{
"capabilities": [
"proposal"
],
"version": 536870912,
"rules": [
"csv",
"!segwit",
"taproot"
],