This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defmodule BadListDiff do | |
use ExUnit.Case | |
test "bad list diff" do | |
assert [ | |
"mean_realized_price_usd_10y", | |
"mean_realized_price_usd_180d", | |
"mean_realized_price_usd_1d", | |
"mean_realized_price_usd_20y", | |
"mean_realized_price_usd_2y", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defmodule EthData do | |
@from ~U[2019-05-01 00:00:00Z] | |
@to ~U[2019-08-01 00:00:00Z] | |
@slug "ethereum" | |
@special [ | |
"socialGainersLosersStatus", | |
"socialVolume", | |
{"socialVolume", "mentionsCount"}, | |
{"ethSpentOverTime", "ethSpent"}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Mix.install([{:csv, "~> 2.4"}]) | |
num_to_column = fn num -> | |
cond do | |
num <= 25 -> <<?A + num::utf8>> | |
num <= 51 -> "A" <> <<?A + (num - 26)::utf8>> | |
num <= 76 -> "B" <> <<?A + (num - 51)::utf8>> | |
num <= 100 -> "C" <> <<?A + (num - 75)::utf8>> | |
true -> raise("Boom") | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Mix.install([:nimble_csv]) | |
defmodule Transform do | |
@slugs_top_100 ~w(bitcoin ethereum tether binance-coin cardano ripple dogecoin usd-coin polkadot-new uniswap binance-usd bitcoin-cash solana litecoin chainlink internet-computer wrapped-bitcoin ethereum-classic matic-network stellar theta vechain file-coin luna multi-collateral-dai tron aave monero ftx-token eos pancakeswap crypto-com-coin bitcoin-bep2 the-graph maker axie-infinity neo cosmos klaytn shiba-inu bitcoin-sv avalanche tezos algorand unus-sed-leo elrond-egld iota amp compound bittorrent huobi-token hedera-hashgraph terrausd decred kusama chiliz waves quant dash blockstack zcash nem thorchain theta-fuel holo celsius okb helium decentraland enjin-coin sushi yearn-finance trueusd ravencoin near-protocol xinfin-network synthetix-network-token flow zilliqa nexo basic-attention-token qtum bitcoin-gold telcoin harmony bancor paxos-standard ethos kucoin-shares celo digibyte siacoin ontology 0x mdex zencash ankr fantom swissborg curve) | |
@metrics ~w(activ |
OlderNewer