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
** Add repository and install bitcoind ** | |
sudo apt-get install build-essential | |
sudo apt-get install libtool autotools-dev autoconf | |
sudo apt-get install libssl-dev | |
sudo apt-get install libboost-all-dev | |
sudo add-apt-repository ppa:bitcoin/bitcoin | |
sudo apt-get update | |
sudo apt-get install bitcoind | |
mkdir ~/.bitcoin/ && cd ~/.bitcoin/ |
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
"Id": "sha256:8926b83923b11e8ea6e6be1c8f96f941fcd7731238273b2bed692b407e37fd3c", | |
"RepoTags": [ | |
"eosio/eos-dev:latest" | |
], | |
"RepoDigests": [ | |
"eosio/eos-dev@sha256:150cab925ca326293a82518bcd7d1a3cbbd5720f7e12f4545c6a616819083ab2" | |
], | |
"Parent": "", | |
"Comment": "", | |
"Created": "2018-09-12T00:24:34.401119021Z", |
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
<template> | |
<div> | |
<Table :columns="columns" :data="tokens"></Table> | |
</div> | |
</template> | |
<script> | |
export default { | |
data () { | |
return { |
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
brew tap osx-cross/avr | |
brew tap PX4/homebrew-px4 | |
brew update | |
brew install avr-gcc | |
brew install dfu-programmer | |
brew install gcc-arm-none-eabi | |
brew install avrdude |
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 EIP20 { | |
uint256 constant private MAX_UINT256 = 2**256 - 1; | |
uint256 public totalSupply; | |
mapping (address => uint256) public balances; | |
mapping (address => mapping (address => uint256)) public allowed; | |
string public name; //fancy name: eg Simon Bucks | |
uint8 public decimals; //How many decimals to show. | |
string public symbol; //An identifier: eg SBX |
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
contract PackedArray { | |
uint[] public arrays; | |
function push(uint[] _args) public { | |
arrays = _args; | |
} | |
function remove(uint index) public { | |
PackedArray(this).pack(arrays, index); | |
} |
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
geth -dev --ws --wsport 8546 --wsaddr 0.0.0.0 --wsorigins "*" --wsapi "eth,web3,shh" console | |
// 上記コマンドで起動したconsoleで下記を実行して、symKeyの値をメモしておく | |
> web3.shh.newSymKey() | |
"6a255cd62f2f9989119a60ea0cac6aa71aba479e99a49cff8a6eade669f1e44e" | |
> |
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.17; | |
contract MyToken { | |
event Deposit( | |
address indexed _from, | |
bytes32 indexed _id | |
); | |
function deposit(bytes32 _id) public { | |
// deposit pproc |
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.17; | |
contract MultiVoteTransfer { | |
address[] voterAddresses; | |
mapping(address => bool) votes; | |
bool public transfered; | |
modifier onlyVoter() { | |
bool isVoter = false; |
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.17; | |
contract InnerContract { | |
function say() public pure returns (bytes32) { | |
return "first ver"; | |
} | |
} | |
contract MyContract { | |
address public owner; |
NewerOlder