Skip to content

Instantly share code, notes, and snippets.


Jarrell Waggoner malloc47

View GitHub Profile
paraboul / command line
Created Mar 14, 2012
JavaScript + C Preprocessor
View command line
/usr/bin/cpp -P -undef -Wundef -std=c99 -nostdinc -Wtrigraphs -fdollars-in-identifiers -C < foo.js
hrldcpr /
Last active Oct 17, 2020
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!

You can’t perform that action at this time.