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
@phuctu1901
phuctu1901 / AccessVariable.sol
Created August 13, 2018 09:01
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.18;
contract Test {
address owner;
uint256 val = 256;
address otherContract;
constructor() public{
owner = msg.sender;
@phuctu1901
phuctu1901 / AnonymouseVoting.sol
Created August 13, 2018 04:07
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.3;
/**
* @title ECCMath
*
* Functions for working with integers, curve-points, etc.
*
* @author Andreas Olofsson ([email protected])
*/
library ECCMath {
@phuctu1901
phuctu1901 / AnonymouseVoting.sol
Created August 13, 2018 02:26
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.3;
/**
* @title ECCMath
*
* Functions for working with integers, curve-points, etc.
*
* @author Andreas Olofsson ([email protected])
*/
library ECCMath {
@phuctu1901
phuctu1901 / VehicleManagement.sol
Last active August 13, 2018 01:25
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 Vehicles{
struct Person {
address owner;
string yearOfRegis;
string etag_id;
}
#include "stdio.h"
#include "stdlib.h"
struct NODE
{
int Data;
struct NODE *left, *right;
};
typedef struct NODE *NODEPTR;