Skip to content

Instantly share code, notes, and snippets.

View phuctu1901's full-sized avatar
🎯
Focusing for learn more...

Nguyễn Phúc Tú phuctu1901

🎯
Focusing for learn more...
View GitHub Profile
{
"url": "",
"name": "TON FISH GUARD BOT",
"iconUrl": "https://assets.coingecko.com/coins/images/34651/standard/FISH_LOGO.png"
}
# assuming you already have cargo
# check with
cargo version
# then install
cargo install cargo-generate --features vendored-openssl
cargo install cargo-run-script
# now you can generate
cargo generate --git https://github.com/InterWasm/cw-template.git --name dummies_example
version: '3'
services:
homeassistant:
container_name: home-assistant
image: homeassistant/home-assistant:stable
volumes:
- ./homeassistant_data:/config
environment:
version: '3.1'
services:
db:
image: mariadb:10.3
restart: always
ports:
- 3306:3306
environment:
MYSQL_USER: admin
{"reqSignature":{},"txn":{"data":{"alias":"Phil Windley","dest":"NMjQb59rKTJXKNqVYfcZFi","role":"0","verkey":"Ce9jZ2bQcLRCrY3eT5AbjsU5mXFa4jMF6dDSF21tyeFJ"},"metadata":{},"type":"1"},"txnMetadata":{"seqNo":1},"ver":"1"}
{"reqSignature":{},"txn":{"data":{"alias":"Jason Law","dest":"K2ze2xR8MAxkQscdkboKnD","role":"0","verkey":"~KhvZWs1QSS8bS1RxB55NE3"},"metadata":{},"type":"1"},"txnMetadata":{"seqNo":2},"ver":"1"}
{"reqSignature":{},"txn":{"data":{"alias":"Drummond Reed","dest":"Jv4afJBghiuJ2tiZDduarJ","role":"0","verkey":"AmKnoVceCaEHBCaDjtSYqwLLpmVQLBbZMgAZHfSyv936"},"metadata":{},"type":"1"},"txnMetadata":{"seqNo":3},"ver":"1"}
{"reqSignature":{},"txn":{"data":{"alias":"Peter Simpson","dest":"JX29L7h6UpDNEThiaTYx9N","role":"0","verkey":"AYmPQJTcpsH1YxRQUwwRgGzQVLFf8JRvmuS5LKNZN1gA"},"metadata":{},"type":"1"},"txnMetadata":{"seqNo":4},"ver":"1"}
{"reqSignature":{},"txn":{"data":{"alias":"Ron Amstutz","dest":"7jJe9ArRfRchSKL2sYgFDj","role":"0","verkey":"4fjHSUqU9RmeXWXHV6MnKFDtEyEcBUipovhNCDuei5XW"},"metadata"
#自动化安装zsh,oh-my-zsh-tmux,powerline并配置powerline
echo "--- start update ---"
sudo apt-get update
echo "--- end update ---"
echo "--- apt install zsh tmux python-pip ---"
sudo apt-get install zsh tmux python-pip
echo "--- end apt install ---"
echo "--- install oh-my-zsh ---"
import requests
url = "https://gentle-fjord-76321.herokuapp.com/verifyDegree"
payload = "{\n\t\"serial_number\":\"serialnumber\",\n\t\"university_code\":\"mta\",\n\t\"hash\":\"hash\"\n}"
headers = {
'Content-Type': "application/json",
'User-Agent': "PostmanRuntime/7.19.0",
'Accept': "*/*",
'Cache-Control': "no-cache",
import getopt
import signal
import time
import sys
import json
import wiotp.sdk.application
# Cấu hình cho application có khả năng kết nối tới server
myConfig = {
import wiotp.sdk.device
import datetime
import time
# Sự kiện khi nhận một request từ phía server
def myCommandCallback(cmd):
print("Command received: %s" % cmd.data)
print(cmd.data)
@phuctu1901
phuctu1901 / Bot.sol
Created August 15, 2018 10:27
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.4.24+commit.e67f0147.js&optimize=false&gist=
pragma solidity ^0.4.21;
contract BotManagement{
function verifyVehicle(address , string ) public returns (bool) {}
}
contract Bot{
BotManagement botManagementContract;