Thursday, July 18, 2024
Rust pop-quiz answer: querying Terra swagger endpoint
Monday, July 8, 2024
Rust pop-quiz: querying Terra swagger
#Rust pop-quiz:
@terra_money has a swagger endpoint where you can query bunches of things.
Write a Rust program to query your wallet's balances. Notice anything weird?
Does @TeamKujira have a swagger endpoint to make such queries?
- (answer)
Monday, June 24, 2024
Rust pop-quiz answer: matrix/spreadsheet-transpose
#Rust pop-quiz answer: matrix/(spreadsheet)-transpose
You know what 'transpose' means, mathematically?
It means the rows become the columns, or, as I implement it in matrix_utils.rs: the cols become the rows.
Example: where I show ETH/BTC ratios over time.
Monday, June 10, 2024
Rust pop-quiz answer: Configuring reading configuration files by git branches
Sunday, June 9, 2024
Pivot pop-quiz: dictionary of coin gecko token IDs
- line 1: @coingecko token API ids
- line 2: token-symbols
- (answer)
Pivot pop-quiz: libraryitize reading REST endpoint
#Rust pop-quiz 02
Now that you can read from a REST endpoint, shunt that functionality into its own module, read_rest.rs that has the following function:
read_pivots() -> ErrStr<Vec<String>>
We'll be using this as a library function in follow-on quizzes.
The library name? swerve
- (answer)
- (next quiz)
Pivot pop-quiz: read REST endpoint
- (answer)
Fun fact!
Did you know that you – YES, YOU! – can make your git repository data a (GET) REST endpoint?IT'S TRUE! HERE'S HOW IS ONE EASY STEP!Your CSV, TSV, or, really, any data on github has a 'raw'-counterpart that can be queried, just like any GET REST endpoint.
Caveat
These raw-representations are NOT updated instantly on a git push but there is a timed-delay of 5 minutes (300 seconds), so: if you do a git push and don't see the updates in the raw data, DON'T PANIC! This is not a bug, but a feature, from github.
Thursday, May 30, 2024
Rust pop-quiz: transpose spreadsheet
#Rust / #Elixir pop-quiz
The spreadsheet 'transpose'-function takes a set of rows and transposes them to a set of columns (or vice versa).
Take the SPREADSHEETZORXEN generated by ./cmc:
and output, instead, the single row of token-prices.
- (answer)
Tuesday, May 28, 2024
Rust pop-quiz: read Kujira Oracle REST endpoint
2024-05-28 5.16999452 1.613136506 1.204187945 8.710272459
- (answer)
Friday, May 24, 2024
Bonus cryptocurrency pop-quiz: configure location of lsd-configuration file
Bonus to adding $stTIA to the lsd-configuration pop-quiz: Configure reading the configuration file from branches other than main.
What do I mean by this?
./lsd doesn't have configuration to locate the lsd-configuration-file, so testing can only occur in main (??!)
Pass the branch-name to ./lsd
- (answer)
Rust Cryptocurrency pop-quiz: Ghost x-token exchange-rates
- (answer)
Saturday, May 4, 2024
Rust pop-quiz answer: sorted domains for deployed liquidity
Friday, May 3, 2024
Rust pop-quiz: deploying liquidity across intersecting domains
- (answer)
Wednesday, April 10, 2024
Rust pop-quiz: ontology of integrated cryptocurrency portfolio
- (answer)
Thursday, March 28, 2024
Rust pop-quiz: last updated date on token prices
- (answer)
Monday, March 25, 2024
Rust pop-quiz: my Kujira portfolio prices
Saturday, March 23, 2024
Rust pop-quiz answer: one_line
Friday, March 22, 2024
Rust pop-quiz: one_line
- undervalued tokens, as per vault metrics: $KUJI $NSTK $STARS $FUZN $MNTA
- (answer)
Saturday, March 9, 2024
Rust pop-quiz answer: Venn Diagram of Kujira FIN 24h-volumes
Friday, March 8, 2024
Rust pop-quiz answer: totally rows of data in reports
#Rust pop-quiz answer to totaling rows of data in reports:
That took more effort than I care to admit, as reportage and formatting always do. π
BUT! Now we have reports with a totals-row, and I am well-pleased, even if I had to invent matrices to get there.



















