Skip to content

Instantly share code, notes, and snippets.

View sutaburosu's full-sized avatar
🤯

sutaburosu sutaburosu

🤯
  • UK
  • 18:36 (UTC)
View GitHub Profile
@urish
urish / wokwi-custom-chips-c-api.md
Last active January 30, 2023 05:47
Wokwi Custom Chips C API
@fjebaker
fjebaker / bbc_radio.sh
Last active March 3, 2021 18:13
mpd BBC Radio Streams
#!/bin/bash
# station urls found in http://www.suppertime.co.uk/blogmywiki/2015/04/updated-list-of-bbc-network-radio-urls/
# script inspired by https://gist.github.com/stengland/4052479
STATIONS=(
radio1 radio1xtra radio2 radio3
radio4fm radio4lw radio4extra
radio5live 6music asianet
cymru foyle nangaidheal scotlandfm
@bearfrieze
bearfrieze / comprehensions.md
Last active December 23, 2023 22:49
Comprehensions in Python the Jedi way

Comprehensions in Python the Jedi way

by Bjørn Friese

Beautiful is better than ugly. Explicit is better than implicit.

-- The Zen of Python

I frequently deal with collections of things in the programs I write. Collections of droids, jedis, planets, lightsabers, starfighters, etc. When programming in Python, these collections of things are usually represented as lists, sets and dictionaries. Oftentimes, what I want to do with collections is to transform them in various ways. Comprehensions is a powerful syntax for doing just that. I use them extensively, and it's one of the things that keep me coming back to Python. Let me show you a few examples of the incredible usefulness of comprehensions.