Skip to content

Instantly share code, notes, and snippets.

@gaving
Created February 23, 2020 19:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gaving/fdfad7ba7be47554fca28f86e6156fb1 to your computer and use it in GitHub Desktop.
Save gaving/fdfad7ba7be47554fca28f86e6156fb1 to your computer and use it in GitHub Desktop.
duolingo leaderboard
leaderboard() {
http --session=duo \
GET 'https://duolingo-leaderboards-prod.duolingo.com/leaderboards/7d9f5dd1-8423-491a-91f2-2532052038ce/users/432412033?client_unlocked=true&_=1582470157128' \
| jq -r '.active.cohort.rankings[] | [.score, .display_name] | join (" ")' \
| tac \
| gsed 's/gaving/gaving 👈/g' \
| paste - \
| column \
| expand \
| bat \
--theme base16 \
--style plain \
--language r
}
@gaving
Copy link
Author

gaving commented Feb 23, 2020

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment