This file contains hidden or 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
#include "stdio.h" | |
#include "stdlib.h" | |
struct NODE | |
{ | |
int Data; | |
struct NODE *left, *right; | |
}; | |
typedef struct NODE *NODEPTR; |
This file contains hidden or 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.21; | |
contract Vehicles{ | |
struct Person { | |
address owner; | |
string yearOfRegis; | |
string etag_id; | |
} | |
This file contains hidden or 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.3; | |
/** | |
* @title ECCMath | |
* | |
* Functions for working with integers, curve-points, etc. | |
* | |
* @author Andreas Olofsson ([email protected]) | |
*/ | |
library ECCMath { |
This file contains hidden or 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.3; | |
/** | |
* @title ECCMath | |
* | |
* Functions for working with integers, curve-points, etc. | |
* | |
* @author Andreas Olofsson ([email protected]) | |
*/ | |
library ECCMath { |
This file contains hidden or 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.18; | |
contract Test { | |
address owner; | |
uint256 val = 256; | |
address otherContract; | |
constructor() public{ | |
owner = msg.sender; |
This file contains hidden or 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.21; | |
contract BotManagement{ | |
function verifyVehicle(address , string ) public returns (bool) {} | |
} | |
contract Bot{ | |
BotManagement botManagementContract; | |
This file contains hidden or 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
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) |
This file contains hidden or 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
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 = { |
This file contains hidden or 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
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", |
This file contains hidden or 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
#自动化安装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 ---" |
OlderNewer