Skip to content

Instantly share code, notes, and snippets.

View edridgedsouza's full-sized avatar

Edridge D'Souza edridgedsouza

  • Worcester, MA
View GitHub Profile
@datagrok
datagrok / gist:2199506
Last active April 8, 2023 17:36
Virtualenv's `bin/activate` is Doing It Wrong
@hrldcpr
hrldcpr / tree.md
Last active May 1, 2024 00:11
one-line tree in python

One-line Tree in Python

Using Python's built-in defaultdict we can easily define a tree data structure:

def tree(): return defaultdict(tree)

That's it!