Skip to content

Instantly share code, notes, and snippets.

@edmundmiller
edmundmiller / AddressUtils.sol
Created August 20, 2018 01:38
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.24+commit.e67f0147.js&optimize=false&gist=
pragma solidity ^0.4.23;
/**
* Utility library of inline functions on addresses
*/
library AddressUtils {
/**
* Returns whether the target address is a contract
@edmundmiller
edmundmiller / BasicToken.sol
Created August 20, 2018 01:33
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.24+commit.e67f0147.js&optimize=false&gist=
pragma solidity ^0.4.23;
import "./ERC20Basic.sol";
import "../../math/SafeMath.sol";
/**
* @title Basic token
* @dev Basic version of StandardToken, with no allowances.

Keybase proof

I hereby claim:

  • I am emiller88 on github.
  • I am emiller88 (https://keybase.io/emiller88) on keybase.
  • I have a public key ASD1E3RmEa7wMwAlceu9IEiqPiOwA6bdfrYBsG1p_FwhjQo

To claim this, I am signing this object:

truffle init
npm init -y
npm install -E zeppelin-solidity
solium --init
solium -d contracts/
@edmundmiller
edmundmiller / CryptoZombies.md
Last active April 4, 2018 04:00
CryptoZombies Army
@edmundmiller
edmundmiller / cfg-install.sh
Last active December 17, 2017 06:48
Fresh installs
git clone --bare https://github.com/Emiller88/dotfiles.git $HOME/.cfg
function config {
/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME $@
}
mkdir -p .config-backup
config checkout
if [ $? = 0 ]; then
echo "Checked out config.";
else
echo "Backing up pre-existing dot files.";
We couldn’t find that file to show.
@edmundmiller
edmundmiller / Python_.idea_Python.iml
Created February 1, 2017 00:40
Practice with pyplot
<?xml version="1.0" encoding="UTF-8"?>
<module type="PYTHON_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/dataSci" isTestSource="false" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
<component name="TestRunnerService">