This file contains 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.24; | |
contract PayToSignatureHash { | |
mapping(bytes32 => uint) public balances; | |
function payToHash(bytes32 hash) public payable { | |
balances[hash] += msg.value; | |
} |
This file contains 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.24; | |
contract SimpleContract { | |
uint public paymentCount = 0; | |
event PaymentReceived(uint value, address sender); | |
address public owner; | |
constructor() public { |
This file contains 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.24; | |
import "./IERC20.sol"; | |
contract TransferToMany { | |
address owner; | |
constructor() public { | |
owner = msg.sender; | |
} | |
This file contains 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
[{ | |
"constant": true, | |
"inputs": [], | |
"name": "name", | |
"outputs": [{ | |
"name": "", | |
"type": "string" | |
}], | |
"payable": false, | |
"stateMutability": "view", |
This file contains 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.23; | |
// ---------------------------------------------------------------------------- | |
// ERC Token Standard #20 Interface | |
// https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20-token-standard.md | |
// ---------------------------------------------------------------------------- | |
contract ERC20Interface { | |
function totalSupply() public constant returns (uint); | |
function balanceOf(address tokenOwner) public constant returns (uint balance); | |
function allowance(address tokenOwner, address spender) public constant returns (uint remaining); | |
function transfer(address to, uint tokens) public returns (bool success); |
This file contains 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
vim: set ft=solidity: | |
pragma solidity ^0.4.24; | |
contract MultiSig { | |
struct Proposal { | |
address to; | |
uint amount; | |
mapping(address => bool) signers; | |
bool finalized; |
This file contains 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
function filterObj(toFilter, filterKeys) { | |
return Object.entries(toFilter) | |
.filter(([key, value]) => filterKeys.includes(key)) | |
.reduce((obj, [key, val]) => Object.assign(obj, { [key]: val }), {}); | |
} |
This file contains 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
for(let p of document.querySelectorAll("[data-tooltip='Edit or Remove']")){p.click()};setTimeout(() => {for(let p of document.querySelectorAll("[data-action-type='remove_tag']")){p.click();} setTimeout(() => {for(let p of document.getElementsByClassName('layerConfirm')){p.click();}}, 1000)}, 1000); |
This file contains 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
for(let p of document.querySelectorAll("[data-tooltip='Edit or Remove']")){p.click()};setTimeout(() => {for(let p of document.querySelectorAll("[data-action-type='delete_video']")){p.click();} setTimeout(() => {for(let p of document.getElementsByClassName('layerConfirm')){p.click();}}, 1000)}, 1000); |
This file contains 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
for(let p of document.querySelectorAll("[data-tooltip='Edit or Remove']")){p.click()};setTimeout(() => {for(let p of document.querySelectorAll("[data-action-type='hide_from_timeline']")){p.click();} setTimeout(() => {for(let p of document.getElementsByClassName('layerConfirm')){p.click();}}, 1000)}, 1000); |