codedump.ch

This is where I collect things that interest and inspire me.

Picture from Alariko

source

Luggage Losers

2024-07-01

https://luggagelosers.com/

A live ranking of airlines by how much luggage they are losing right now.

Python Mocking 101

2024-06-24

Python Mocking 101: Fake it before you make it

@patch("module.mock_function")
def test_thing(..., mock_call):
    mock_call.return_value = {"foo": "bar"}

    module.mock_function(a, b, c)

    mock_call.assert_called_once_with(a, b, c)
ds{count}{motion} // delete the surroundings
cs{count}{motion} // change the surroundings
ys{count}{motion} // add surroundings

Surround things in vscode vim

https://www.devever.net/~hl/traintoilet

What I love about this is that this person paid attention to their
surroundings. They tried to understand the most ordinary thing they encountered.
Yet this makes clear that even those things had to be designed by someone.
Somebody had to make an effort and figure out a system on how to lock a train
toilet. And this hack somewhat pays homage to that.

Skate Short Film

2024-06-18

https://timberfestival.org.uk/

Map of the sounds of forests all around the world.

Big Take

2024-06-17

paulstretch

Stretch any sound to the extreme.
Example with the Windows 98 startup sound.

  1. 1
  2. 2
  3. 3
  4. 4