Skip to content

Instantly share code, notes, and snippets.

View danlooo's full-sized avatar
🌍

Daniel Loos danlooo

🌍
  • Max Planck Institute for Biogeochemistry
  • Jena, Germany
View GitHub Profile
@OnesimusUnbound
OnesimusUnbound / quote.txt
Last active August 16, 2023 16:24
Programming Quotes
[T]he difference between a bad programmer and a
good one is whether he considers his code or his
data structures more important. Bad programmers
worry about the code. Good programmers worry about
data structures and their relationships.
-- Linus Torvalds
~~~
Clarity and brevity sometimes are at odds.
When they are, I choose clarity.
-- Jacob Kaplan-Moss
@dyerw
dyerw / coroutines.py
Created January 6, 2015 17:09
A simple producer/consumer example using python coroutines
import random
def coroutine(func):
"""A decorator to automatically prime coroutines"""
def start(*args, **kwargs):
cr = func(*args, **kwargs)
next(cr)
return cr
return start