network | type | name | symbol | decimal | address |
---|---|---|---|---|---|
Ethereum | 20 | Tether USD (USDT) | USDT | 6 | 0xdAC17F958D2ee523a2206206994597C13D831ec7 |
Ethereum | 20 | Dai Stablecoin (DAI) | DAI | 18 | 0x6B175474E89094C44Da98b954EedeAC495271d0F |
Ethereum | 20 | USD Coin (USDC) | USDC | 6 | 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 |
Ethereum | 20 | Binance USD (BUSD) | BU |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Script: my-pi-temp.sh | |
# Purpose: Display the ARM CPU and GPU temperature of Raspberry Pi 2/3 | |
# Author: Vivek Gite <www.cyberciti.biz> under GPL v2.x+ | |
# ------------------------------------------------------- | |
cpu=$(</sys/class/thermal/thermal_zone0/temp) | |
echo "$(date) @ $(hostname)" | |
echo "-------------------------------------------" | |
echo "GPU => $(/opt/vc/bin/vcgencmd measure_temp)" | |
echo "CPU => $((cpu/1000))'C" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// MIT License | |
// Copyright (c) 2021 Dũng Trần a.k.a Chiro Hiro <chiro8x@gmail.com> | |
import { Signer } from '@ethersproject/abstract-signer' | |
import { Contract } from '@ethersproject/contracts' | |
import hre from 'hardhat' | |
interface IKeyValues { | |
[key: string]: string | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fs = require("fs"); | |
const opcode = require("./opcode"); | |
// Map OPCODE string -> Binary value | |
const asmMap = new Map(opcode.map((v, i) => [v, i])); | |
function compile(fileName) { | |
const inputContent = fs.readFileSync(fileName).toString(); | |
const fileContent = inputContent | |
.split("\n") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const src = [ | |
{ name: 'a', value: 1 }, | |
{ name: 'b', value: 2 }, | |
{ name: 'c', value: 3 }, | |
]; | |
const dst = [ | |
{ name: 'd', value: 4 }, | |
{ name: 'a', value: 5 }, | |
{ name: 'f', value: 6 }, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.4.4; | |
contract X{ | |
string junk; | |
function y() returns(string){ | |
//Uncomment the 'junk' below to make gas-measurements | |
//junk="0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF012345 |
Install hardhat with serveral stuffs:
npm install --save-dev hardhat @nomiclabs/hardhat-waffle \
ethereum-waffle chai @nomiclabs/hardhat-ethers ethers ts-node \
typescript chai @types/node @types/mocha @types/chai
Run geth light mode:
std::vector<int> *vec = new std::vector<int>;
assert(vec != NULL);
// ...
delete vec;
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Found this tiny challenge, then i give it a try. | |
https://www.facebook.com/groups/learningcplusplus/permalink/2668380586619732 | |
---- | |
Đề bài cho một Mảng gồm các phần tữ int bất kỳ. Không được phép xắp xếp hoặc chép lại rồi xắp xếp, làm sao để biết là mãng đó có 5 phần tử đó có liền kề nhau hay không ? | |
Ví dụ a={ 9,6,9,2,6,5,3,4} Có | |
a = { 1,2,3,4,6,7,8} Không | |
Ưu tiên C++ nha | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Copyright (c) 2016 Chiro Hiro. All rights reserved. | |
This work is licensed under the terms of the MIT license. | |
For a copy, see <https://opensource.org/licenses/MIT>. | |
*/ | |
package main | |
import ( |