Skip to content

Instantly share code, notes, and snippets.

View veox's full-sized avatar
💭
Being skeptical of status feature.

Noel Maersk veox

💭
Being skeptical of status feature.
View GitHub Profile
/home/eac/opt/eac-client-8.0.0b1/env/lib/python3.5/site-packages/dotenv/main.py:24: UserWarning: Not loading .env - it doesn't exist.
warnings.warn("Not loading %s - it doesn't exist." % dotenv_path)
Traceback (most recent call last):
File "/home/eac/opt/eac-client-8.0.0b1/env/lib/python3.5/site-packages/alarm_client/contracts/transaction_request.py", line 318, in get_transaction_request
return _txn_request_cache[address]
File "/home/eac/opt/eac-client-8.0.0b1/env/lib/python3.5/site-packages/pylru.py", line 91, in __getitem__
node = self.table[key]
KeyError: None
During handling of the above exception, another exception occurred:
@veox
veox / gnosis-auction-price-at-block.py
Created April 21, 2017 00:14
WIP Rough chart for GNO price during auction
#!/usr/bin/env python3.6
# plot for :
# https://github.com/ConsenSys/gnosis-contracts/blob/security_audit/contracts/solidity/DO/DutchAuction.sol#L236
import matplotlib.pyplot as plot
# about now (early night 2017-04-21)
#STARTBLOCK = 3_571_520
# expected on early night of 2017-04-24
STARTBLOCK = 3_588_800
@veox
veox / 0-getTransactionsByAccount.js
Last active April 25, 2017 15:44
Gnosis Dutch auction results
// started from:
// https://ethereum.stackexchange.com/questions/2531/common-useful-javascript-snippets-for-geth/3478#3478
function getTransactionsByAccount(account, startBlockNumber, endBlockNumber) {
if (endBlockNumber == null) {
endBlockNumber = eth.blockNumber;
console.log("Using endBlockNumber: " + endBlockNumber);
}
if (startBlockNumber == null) {
startBlockNumber = endBlockNumber - 1000;
----- 1499096366.42082118988037109375 ----------------------------------
[1499053200, '245.05616', '245.49999', '245.05616', '245.17086', '245.26327', '11.62873793', 12]
[1499053260, '245.08273', '245.17085', '245.08273', '245.17085', '245.10513', '1.93077707', 6]
[1499053320, '245.08280', '245.20210', '245.05617', '245.05617', '245.17235', '3.01968192', 4]
[1499053380, '245.09726', '245.09726', '245.09726', '245.09726', '245.09726', '0.40806876', 1]
[1499053440, '245.48659', '245.48659', '245.48659', '245.48659', '245.48659', '0.43161049', 1]
----- 1.5261075496673583984375 -----------------------------------------
----- 1499096387.9669125080108642578125 --------------------------------
[1499053200, '245.05616', '245.49999', '245.05616', '245.17086', '245.26327', '11.62873793', 12]
[1499053260, '245.08273', '245.17085', '245.08273', '245.17085', '245.10513', '1.93077707', 6]
0x0530c54A6a0a90A7C1EC4242c7D3594a1E5FFd61
0x0530c54A6a0a90A7C1EC4242c7D3594a1E5FFd61
0x5c887987aA814026D5348dfd730F0d81EffE0bd6
@veox
veox / eth-rinkeby-walleth.addr
Last active July 29, 2017 16:46
Eth rinkeby
0x0530c54A6a0a90A7C1EC4242c7D3594a1E5FFd61
KeyPress event, serial 32, synthetic NO, window 0x1000001,
root 0x273, subw 0x0, time 146928934, (781,655), root:(1743,699),
state 0x11, keycode 50 (keysym 0xfe0a, ISO_Prev_Group), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyRelease event, serial 32, synthetic NO, window 0x1000001,
root 0x273, subw 0x0, time 146928982, (781,655), root:(1743,699),
state 0x10, keycode 50 (keysym 0xffe1, Shift_L), same_screen YES,
@veox
veox / keybase.md
Created October 31, 2017 15:45
keybase.md

Keybase proof

I hereby claim:

  • I am veox on github.
  • I am veox (https://keybase.io/veox) on keybase.
  • I have a public key whose fingerprint is 1298 BC0A 9B0D BEEA 3BDD CBA6 2D3D A6CD 74AB 3D37

To claim this, I am signing this object: