Skip to content

Instantly share code, notes, and snippets.

@chivalry123
chivalry123 / ACoin.sol
Created September 1, 2019 04:16
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.4+commit.4633f3de.js&optimize=false&gist=
pragma solidity ^0.4.21;
import "./EIP20Interface.sol";
contract Acoin is EIP20Interface {
uint256 constant private MAX_UINT256 = 2**256-1;
mapping (address => uint256) public balances;
mapping (address => mapping (address => uint256)) public allowed;
@chivalry123
chivalry123 / binary_search_tree.py
Created November 26, 2018 16:06 — forked from TheDataLeek/binary_search_tree.py
Binary Search Tree implementation and test harness
#!/usr/bin/env
#
# binary_search_tree.py
#
import sys
class bt_node:
data = 0