Skip to content

Instantly share code, notes, and snippets.

Avatar

Jarrell Waggoner malloc47

View GitHub Profile
@paraboul
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
hrldcpr / tree.md
Last active Oct 17, 2020
one-line tree in python
View tree.md

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.