Skip to content

Instantly share code, notes, and snippets.

View dtl's full-sized avatar

David T. Lehmann dtl

View GitHub Profile
@dtl
dtl / Verifying my Peepeth
Created October 25, 2018 22:08
Peepeth verification
Verifying my identity on Peepeth.com 0xbd990e2c1b96873a205e67dd0f74545c5f755144

Keybase proof

I hereby claim:

  • I am dtl on github.
  • I am dtl (https://keybase.io/dtl) on keybase.
  • I have a public key whose fingerprint is 277C 96B3 9AF8 2E8F F28A 6E41 1F24 C412 EB5F 40E5

To claim this, I am signing this object:

The Origin of Species - GDG Berlin Golang

From Noise to Signal

The Problem

Modeling complex systems that execute computations simultaneously and probably use shared resources produces large amounts of execution paths and are hard to reason about on a machine level.

A Possible Solution

@dtl
dtl / treemap.py
Created November 9, 2011 14:41
map over trees in Python
def treemap(fn, mapping):
"""
Walks a mapping and converts every value with fn.
:param fn: a callable that returns a (maybe) new value
:param mapping: a (maybe) nested dict
"""
d = {}
for k, v in mapping.iteritems():
@dtl
dtl / pipup.sh
Created November 8, 2011 10:12
Update all installed PIP packages
#!/usr/bin/env sh
pip freeze | cut -d = -f 1 | xargs pip install -U