Showing posts with label github. Show all posts
Showing posts with label github. Show all posts

Sunday, June 9, 2024

Pivot pop-quiz: read REST endpoint

#Rust pop-quiz: build a trade-recommender based upon pivots (more deets on pivots here)

quiz 01: read this REST endpoint.

That's it. You can print out the response if you'd like.

Anybody want to counterchallenge me with #Elixir?
  • (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. 

Wednesday, August 2, 2023

Cryptocurrency: automating archiving 100s of files with git

#cryptocurrency pop-answer to the pop-quiz about automating archiving 100s of files with git.

You may not know this, but 'make' is powerful.

By making git-archiving a procedure in the Makefile



I'm able to archive months of price-history with one make-command.




Cryptocurrency pop-answer: integrating git into CoinMarketCap daily reports

#cryptocurrency pop-answer to integrating git into CoinMarketCap daily reports.




You see in Makefile how we simplify the file-naming then archive the file by date into git. 

Saturday, July 29, 2023

Cryptocurrency pop-quiz: archive data into git

Those are many preexisting files to reduce to one file.



It'd be a shame to lose all that rich just-waiting-to-be-analyzed data.

I WONDER if'n there were a way to archive all those data, efficaciously?

#cryptocurrency pop-quiz

Write a program that archives those files into git.

Cryptocurrency pop-quiz: systemic git-integration

#Cryptocurrency pop-quiz

Preamble

My system, ./cmc_filter receives a JSON file, 

along with a configuration file of tracked coin( names)s, and spits out price-data on the tracked coins.

This system runs off of Makefile

Problem statement


You see (LT) that this approach generates many files, as values change, day-to-day.

Huh! This sounds like a versioning-issue.

Update the system so that ./cmc_prices outputs a single (not-dated) file and ./cmc_filter reads that file AND GIT VERSIONS THAT FILE!