Skip to content

Instantly share code, notes, and snippets.

@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">
We couldn’t find that file to show.
@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.";
@edmundmiller
edmundmiller / CryptoZombies.md
Last active April 4, 2018 04:00
CryptoZombies Army
truffle init
npm init -y
npm install -E zeppelin-solidity
solium --init
solium -d contracts/

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:

@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.
@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
/* Copyright 2015-2017 Jack Humbert
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
2018-10-02T14:58:34.962883+00:00 app[web.1]:
2018-10-02T14:58:34.962873+00:00 app[web.1]:
2018-10-02T14:58:34.962838+00:00 app[web.1]: Line 55: 'fileBuffer' is assigned a value but never used no-unused-vars
2018-10-02T14:58:34.962849+00:00 app[web.1]: Line 3: 'Route' is defined but never used no-unused-vars
2018-10-02T14:58:34.962875+00:00 app[web.1]: ./src/index.js
2018-10-02T14:58:34.962886+00:00 app[web.1]: Search for the keywords to learn more about each warning.
2018-10-02T14:58:34.962877+00:00 app[web.1]: Line 6: 'Web3Provider' is defined but never used no-unused-vars
2018-10-02T14:58:34.962854+00:00 app[web.1]: ./src/components/constants/Header.js
2018-10-02T14:58:34.962851+00:00 app[web.1]: Line 3: 'Switch' is defined but never used no-unused-vars
2018-10-02T14:58:34.962888+00:00 app[web.1]: To ignore, add // eslint-disable-next-line to the line before.