MOVE TO HERE
首先确定已经安装完成 docker,如果没有安装可以使用以下脚本快速安装并配置:
[custom] | |
;不要随意改变关键字,否则会导致出错 | |
;acl4SSR规则 | |
;去广告:支持 | |
;自动测速:支持 | |
;微软分流:支持 | |
;苹果分流:支持 | |
;增强中国IP段:支持 | |
;增强国外GFW:支持 |
首先确定已经安装完成 docker,如果没有安装可以使用以下脚本快速安装并配置:
/** | |
*Submitted for verification at Etherscan.io on 2020-09-16 | |
*/ | |
// SPDX-License-Identifier: UNLICENSED | |
pragma solidity =0.6.11; | |
/** | |
* @dev Interface of the ERC20 standard as defined in the EIP. | |
*/ |
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"; |
# ref: https://apt.llvm.org/ | |
# 8 | |
deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-8 main | |
deb-src http://apt.llvm.org/xenial/ llvm-toolchain-xenial-8 main | |
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key|sudo apt-key add - | |
# LLVM | |
apt-get install libllvm-8-ocaml-dev libllvm8 llvm-8 llvm-8-dev llvm-8-doc llvm-8-examples llvm-8-runtime | |
# Clang and co | |
apt-get install clang-8 clang-tools-8 clang-8-doc libclang-common-8-dev libclang-8-dev libclang1-8 clang-format-8 python-clang-8 |
#!/usr/bin/env bash | |
set -eux | |
set -o pipefail | |
# Add Docker's official GPG key: | |
apt-get update -y | |
apt-get install ca-certificates curl jq -y | |
install -m 0755 -d /etc/apt/keyrings | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc |
/** | |
* @file get/set caret position and insert text | |
* @author islishude | |
* @license MIT | |
*/ | |
export class Caret { | |
/** | |
* get/set caret position | |
* @param {HTMLColletion} target | |
*/ |
[ | |
{ | |
"constant": true, | |
"inputs": [], | |
"name": "name", | |
"outputs": [{ "name": "", "type": "string" }], | |
"payable": false, | |
"stateMutability": "view", | |
"type": "function" | |
}, |
// https://github.com/sidorares/node-mysql2/issues/677 | |
const mysql = require("mysql2/promise"); | |
const stream = require("stream"); | |
const dbconn = mysql.createPool({ | |
connectionLimit: 10, | |
host: "127.0.0.1", | |
user: "user", | |
password: "password", | |
database: "database", |
// Package networks is All Networks params | |
// HDCoinType @see https://github.com/satoshilabs/slips/blob/master/slip-0044.md | |
package networks | |
import "github.com/btcsuite/btcd/chaincfg" | |
// Litecoin network | |
// @see https://github.com/litecoin-project/litecoin/blob/master/src/chainparams.cpp#L135 | |
var Litecoin = &chaincfg.Params{ | |
Name: "Litecoin", |