Skip to content

Instantly share code, notes, and snippets.

View sherlock-shi-x's full-sized avatar
🤠
Hoooooa

Sherlock sherlock-shi-x

🤠
Hoooooa
View GitHub Profile
/**
* Ethereum Account Scanner
*
* To run this, you need your own geth node, accepting RPC
* connections on a port you can access.
*
* Install pre-requisites:
* sudo npm install -g web3
*
* Usage:
@sherlock-shi-x
sherlock-shi-x / CryptoThreeKingdomsTokenPackage.sol
Last active February 12, 2020 00:14 — forked from lychees/CryptoThreeKingdomsTokenPackage.sol
CryptoThreeKingdomsTokenPackage.sol
pragma solidity ^0.4.20;
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
pragma solidity ^0.4.20;
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
@sherlock-shi-x
sherlock-shi-x / sponsorToken.sol
Last active March 22, 2018 12:04 — forked from lychees/sponsorToken.sol
sponsorToken.sol
pragma solidity ^0.4.20;
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;