About    Archives       Etc    Now

 █████╗ ██████╗  ██████╗██╗  ██╗██╗██╗   ██╗███████╗
██╔══██╗██╔══██╗██╔════╝██║  ██║██║██║   ██║██╔════╝
███████║██████╔╝██║     ███████║██║██║   ██║█████╗ 
██╔══██║██╔══██╗██║     ██╔══██║██║╚██╗ ██╔╝██╔══╝
██║  ██║██║  ██║╚██████╗██║  ██║██║ ╚████╔╝ ███████╗
╚═╝  ╚═╝╚═╝  ╚═╝ ╚═════╝╚═╝  ╚═╝╚═╝  ╚═══╝  ╚══════╝
  ███████╗███████╗██╗   ██╗███████╗██████╗ 
  ██╔════╝██╔════╝██║   ██║██╔════╝██╔══██╗
  █████╗  █████╗  ██║   ██║█████╗  ██████╔╝
  ██╔══╝  ██╔══╝  ╚██╗ ██╔╝██╔══╝  ██╔══██╗
  ██║     ███████╗ ╚████╔╝ ███████╗██║  ██║
  ╚═╝     ╚══════╝  ╚═══╝  ╚══════╝╚═╝  ╚═╝
	

/about/archives/#tags/now/rss

Coding Engrams

Author portret should have been here Author portret should have been here Edwin Wenink by Rits Joosten

Secondary sorting in Python

Let’s say we want to compute the mode of a series of numbers, meaning that we pick the value that occurs most. This is easy enough: we sort on the amount of occurrences, assuming we have some datatype that tracks the amount of occurrences per value. However, we need to deal with the edge case of two values occurring the same amount of times. …

Read more


See archives for more ...

Latest comments

Q commented on /digest-2021-04 on Apr 30, 2021
Edwin replied to /42-Vim_Notetaking on Apr 22, 2021
Ritchie commented on /42-Vim_Notetaking on Apr 22, 2021
Edwin replied to /42-Vim_Notetaking on Apr 22, 2021
captain shambles commented on /42-Vim_Notetaking on Apr 22, 2021

Tags

agre ai annotations arch automation autonomous vehicle bayes beautifulsoup bibliography bibtex big data blog book review boolean brid.gy cli coding coetzee comments community complexity courses ctags cyber death deepfake democracy derrida design pattern dictionary digest digital art digitalization diy docker efficiency email emergence encryption epub essay etc ethics example friendship function creep gaussian github google gpg hack hackaton healthcare heidegger hermeneutics holism hugo identity implication indieauth indieweb induction inference intimacy kobo lambda latex linux literature logic machine morality map markdown math michel de montaigne microformats2 mle monte carlo morton music neomutt netlify nginx note-taking object orientation observer ontology pagerank pandoc paradox partner perceptron pgp phenomenology philosophy portrait privacy probability programming python ransomware raspberry pi recommender reve rice ricoeur russell security simulacrum south-africa spark ssh staticman strategy surveillance technocracy templating terrorism text editing theme theology tilde tmux vim war web scraping webmention.io website workflow writing zettelkasten
An IndieWeb Webring 🕸💍