Skip to content

Instantly share code, notes, and snippets.

@ao
Created September 21, 2016 09:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ao/9ccacaf93b16482120790d05be3f626c to your computer and use it in GitHub Desktop.
Save ao/9ccacaf93b16482120790d05be3f626c to your computer and use it in GitHub Desktop.
Python Zen - CLI output
python -c "import sys, random; stdout = sys.stdout; sys.stdout = type('BlackHole', (), {'write': (lambda self, string: '')})(); import this; sys.stdout = stdout; print random.choice(''.join([this.d.get(i, i) for i in this.s]).splitlines()[2:]);"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment