Skip to content

Instantly share code, notes, and snippets.

### Keybase proof
I hereby claim:
* I am lyricalpolymath on github.
* I am beltran (https://keybase.io/beltran) on keybase.
* I have a public key ASC3yI9VjIa8TfMSZwFX6RvQD02rZMRnhS3RzXiz831-Iwo
To claim this, I am signing this object:
@lyricalpolymath
lyricalpolymath / console.sol
Created January 6, 2018 10:17 — forked from maurelian/console.sol
A JS style console.log() function for solidity.
pragma solidity ^0.4.10;
// Enables event logging of the format `console.log('descriptive string', variable)`,
// without having to worry about the variable type (as long as an event has been declared for that type in the
// Console contract.
contract Console {
event LogUint(string, uint);
function log(string s , uint x) {
LogUint(s, x);
Verifying my Blockstack ID is secured with the address 1AfgJGgT3jPR99pg6ncgYHbNrWvvUAEioK https://explorer.blockstack.org/address/1AfgJGgT3jPR99pg6ncgYHbNrWvvUAEioK
@lyricalpolymath
lyricalpolymath / gethSyncingProgress.js
Created August 9, 2016 10:59
ETHERUM BLOCKCHAIN SYNCING PROGRESS (Geth) - simple - give a quick feedback on the progress of the blockchain launched though the geth command line and not the ethereum wallet
//with geth running -copy and paste this code to have a simple feedback of the blockchain syncing progress
geth --exec 'var s = eth.syncing; console.log("\n------------ GETH SYNCING PROGRESS\nprogress: " + (s.currentBlock/s.highestBlock*100)+ " %\nblocks left to parse: "+ (s.highestBlock-s.currentBlock) + "\ncurrent Block: " + s.currentBlock + " of " + s.highestBlock)' attach
// var txTrace = debug.traceTransaction("0x499ba981b32f44ed0fe529231b6783e837366a07082b6e5e4cad251b90ee6859")
//http://etherscan.io/tx/0x499ba981b32f44ed0fe529231b6783e837366a07082b6e5e4cad251b90ee6859 > VM trace
/*
Addresses involved
Poloniex 32be343b94f860124dc4fee278fdcbd38c102d88 (not visible in the trace)
theDAO bb9bc244d798123fde783fcc1c72d3bb8c189413 (not visible in the trace)
theDAOExtraBalanca 807640a13483f8ac783c557fcdf27be11ea4ac7a (visible in the trace)
END_USER e300e1c3af964cf3ed089c7171c6145db05ea199 (visible in the trace)
ETH