Skip to content

Instantly share code, notes, and snippets.

View jordan-chalupka's full-sized avatar
🚀

Jordan Chalupka jordan-chalupka

🚀
View GitHub Profile
import this
import inspect
print(inspect.getsource(this))
s = """Gur Mra bs Clguba, ol Gvz Crgref
Ornhgvshy vf orggre guna htyl.
Rkcyvpvg vf orggre guna vzcyvpvg.
Fvzcyr vf orggre guna pbzcyrk.
Pbzcyrk vf orggre guna pbzcyvpngrq.
Syng vf orggre guna arfgrq.
Fcnefr vf orggre guna qrafr.
Ernqnovyvgl pbhagf.
Fcrpvny pnfrf nera'g fcrpvny rabhtu gb oernx gur ehyrf.
@jordan-chalupka
jordan-chalupka / zen_of_python.py
Created June 4, 2020 23:04
The Zen of Python
import this
# The Zen of Python, by Tim Peters
# Beautiful is better than ugly.
# Explicit is better than implicit.
# Simple is better than complex.
# Complex is better than complicated.
# Flat is better than nested.
# Sparse is better than dense.
# Readability counts.
help(this)
# Help on module this:
# NAME
# this
# MODULE REFERENCE
# https://docs.python.org/3.7/library/this
# The following documentation is automatically generated from the Python
#!/bin/sh
alias urlencode='python3 -c "import sys, urllib.parse as ul; print(ul.quote_plus(sys.argv[1]))"'