Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am columnbb on github.
  • I am columnbb (https://keybase.io/columnbb) on keybase.
  • I have a public key ASCqOHHZdpjwRbmVejjypHZf7p02QoOwFHb5-PKMU16oQwo

To claim this, I am signing this object:

@columnbb
columnbb / Random.sol
Last active August 5, 2018 02:59
簡易亂數產生器
/*
作者:Column
*/
pragma solidity ^0.4.21; //宣告Solidity版本
contract Random {
function getBlockNum() public constant returns(uint) { //取得區塊鏈高度
return block.number;
}
@columnbb
columnbb / Storage.sol
Created August 5, 2018 02:20
設定區塊鏈一個值
pragma solidity ^0.4.23;
contract Storage {
uint data;
function set(uint x) public {
data = x;
}
function get() public constant returns (uint) {