Skip to content

Instantly share code, notes, and snippets.

@manfm
manfm / contract.md
Last active February 24, 2020 12:55
contract deployment

Deploy

Deploy Cash.sol

function:

constructor(address _mintSaver)

Deploy Rise.sol

function:

@manfm
manfm / test_redis_memory.rb
Created December 21, 2016 00:58
Get memory consumption for redis hset data type with uuid is key. Change KEY_SIZE to experiment with different values.
require 'securerandom'
KEY_SIZE = 5
MILLIONS = 10
def key_name(uu_id)
"sk_#{uu_id[0..(KEY_SIZE-1)]}"
end
def field_name(uu_id)