Skip to content

Instantly share code, notes, and snippets.

View pzwang's full-sized avatar

Peter Wang pzwang

  • Anaconda, Inc. (formerly Continuum Analytics)
View GitHub Profile
@pzwang
pzwang / py-analog-literals
Created October 7, 2011 01:36
a stab at multi-dimensional analog literals in Python
>>> I = 1
>>> t = 1
>>> ( +~~~~~~~~+
... I |
... +~~~~~~~~t )
1
# You can also do 3D analog literals. It is not quite as nice as in C/C++
# because none of python's unary math operators resemble a vertical ASCII art
# element.