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
| var els = document.getElementsByClassName("post-template"); | |
| if (els.length > 0) { | |
| var navs = document.getElementsByClassName("navbar"); | |
| if (navs.length > 0) { | |
| var nav = navs[0]; | |
| if (nav.className.match(/\bnavbar-fixed-top\b/)) { | |
| nav.classList.remove("navbar-fixed-top"); | |
| } | |
| } | |
| } |
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
| ./tbnbcli keys add ~/.bnbcli/keys/keys.db | |
| ./tbnbcli api-server --chain-id "Binance-Chain-Nile" node tcp://data-seed-pre-0-s1.binance.org:80 --laddr tcp://127.0.0.1:8080 --trust-node | |
| $ curl http://localhost:8080/version | |
| Binance Chain Release: 0.6.0; | |
| $ curl --request GET http://localhost:8080/api/v1/account/tbnb1ke87gxdtsk32kuaqxj6skhhmn79ma89cx2ep4g | |
| couldn't query account. Error: ABCIQuery: Post http://localhost:26657: dial tcp [::1]:26657: connect: connection refused |
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.22 <0.7.0; | |
| contract myArray { | |
| function getArraySum(uint[] memory _array) public pure returns (uint sum_) { | |
| sum_ = 0; | |
| for (uint i = 0; i < _array.length; i++) { | |
| sum_ += _array[i]; | |
| } |
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.22 <0.7.0; | |
| contract myArray { | |
| function getArraySum(uint[] memory _array) public pure returns (uint sum_) { | |
| sum_ = 0; | |
| for (uint i = 0; i < _array.length; i++) { | |
| sum_ += _array[i]; | |
| } |
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.22 <0.7.0; | |
| contract myArray { | |
| function getArraySum(uint[] memory _array) public pure returns (uint sum_) { | |
| sum_ = 0; | |
| for (uint i = 0; i < _array.length; i++) { | |
| sum_ += _array[i]; | |
| } |
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.22 <0.7.0; | |
| contract myArray { | |
| function getArraySum(uint[] memory _array) public pure returns (uint sum_) { | |
| sum_ = 0; | |
| for (uint i = 0; i < _array.length; i++) { | |
| sum_ += _array[i]; | |
| } |
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.22 <0.7.0; | |
| contract myArray { | |
| function getArraySum(uint[] memory _array) public pure returns (uint sum_) { | |
| sum_ = 0; | |
| for (uint i = 0; i < _array.length; i++) { | |
| sum_ += _array[i]; | |
| } |
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.22 <0.7.0; | |
| contract myArray { | |
| function getArraySum(uint[] memory _array) public pure returns (uint sum_) { | |
| sum_ = 0; | |
| for (uint i = 0; i < _array.length; i++) { | |
| sum_ += _array[i]; | |
| } |
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.22 <0.7.0; | |
| /// @title Voting with delegation. | |
| contract Ballot { | |
| // This declares a new complex type which will | |
| // be used for variables later. | |
| // It will represent a single voter. | |
| struct Voter { | |
| uint weight; // weight is accumulated by delegation | |
| bool voted; // if true, that person already voted |
NewerOlder