Skip to content

Instantly share code, notes, and snippets.

class Entity
attr_accessor :args
end
class EntityRegistry
def initialize
@entities = {}
end

Keybase proof

I hereby claim:

  • I am soleone on github.

  • I am soleone (https://keybase.io/soleone) on keybase.

  • I have a public key ASBbnSxOOxYCg9MVeiEaFLAnF2hqLuApDh6Am2bGHz8NGAo

window.ScatterShopify = {
initialize: function() {
var network = { host:"159.65.161.242", port:8888 };
// Tell Scatter to prepare and instance of eosjs with a
// Scatter Signature Provider pre-configured. There is no way for
// you to use a custom built eosjs with a Scatter provider. This is also a
// proxy, and does not return the actual pre-configured eosjs instance but rather
// a catchable reference. For all intents and purposes it functions the exact same
// as a normal eosjs instance on the application's side.
@Soleone
Soleone / eos_batch_transfer.rb
Created February 18, 2019 17:31
Proof of concept for a Ruby script that can send multiple EOS transfers to different receivers
#!/usr/bin/env ruby
TRANSFERS = [
['accountname1', 100, 'memo 1'],
['accountname2', 50.1, 'memo 2'],
# add more entries here
}
# set your account name here
SENDER_ACCOUNT = 'myaccountname'

EOS Token Supply and Price Overview

Token Supply Max Supply EOS Price Market Cap EOS
EOS 1B 1B 1 1B
ATD 1.5B 1.5B 0.00004 60k
BLACK 2B 3B 0.01 30M
BOID 6.5B 25B 0.00005 1.25M
CET 2B 2B 0.003 6M
CHL 2.7B 2.7B 0.00003 81k
@Soleone
Soleone / eos_token_prices.markdown
Last active October 24, 2018 05:47
Compare current EOS token prices with their actual supply and max supply

EOS Token Supply and Price Overview

Token Supply Max Supply EOS Price
EOS 1B 1B 1
ATD 1.5B 1.5B 0.00008
BLACK 1B 3B 0.04
BOID 6.5B 25B 0.00004
CET 2B 2B 0.004
CHL 2.7B 2.7B 0.00007
RAM_MAX = 64000000000
WEIGHT = 0.5
ASSET_IN = 1
QUOTE_BALANCE = 4819430.0614
RAM_SUPPLY = 14258984821
def util(target)
RAM_MAX - (target * RAM_MAX)
end
@Soleone
Soleone / gist:049ca3ec0ba63011b3fd320583e3edd7
Created June 15, 2018 09:14
Change EOS account owner and active key
cleos -u http://mainnet.genereos.io set account permission MY_ACCNT_NAME active '{"threshold":1,keys:[{key:’MY_NEW_ACTIVE_KEY’,weight:1}],"accounts":[],"waits":[]}' owner -p MY_ACCNT_NAME@owner
cleos -u http://mainnet.genereos.io set account permission MY_ACCNT_NAME owner '{"threshold":1,keys:[{key:’MY_NEW_OWNER_KEY’,weight:1}],"accounts":[],"waits":[]}' -p MY_ACCNT_NAME@owner
Chris chris@example.com
Felix felix@example.net
Elizabeth lizzy1994@example.com
André andre@example.fr
Milo milo.milo@example.com
Olivia olive99@example.net
Hugo hugo124@example.net
Amit amit.123@example.com
Ludwig ludwig@example.net
Raoul raoul@example.com
@Soleone
Soleone / top300_cryptos.csv
Created January 16, 2018 04:21
Top 300 Cryptocurrencies Jan 2018
rank symbol name price_usd market_cap_usd total_supply
1 BTC Bitcoin 13147.5 220948496895 16805362.0
2 ETH Ethereum 1241.73 120457011063 97007410.0
3 XRP Ripple 1.652 63997063924.0 99993093880.0
4 BCH Bitcoin Cash 2301.35 38925292802.0 16914113.0
5 ADA Cardano 0.733957 19029354911.0 31112483745.0
6 LTC Litecoin 222.934 12211378868.0 54775758.0
7 XEM NEM 1.31939 11874509999.0 8999999999.0
8 NEO NEO 165.654 10767510000.0 100000000.0
9 XLM Stellar 0.560339 10024871711.0 103610058900