Skip to content

Instantly share code, notes, and snippets.

@gutoxp
gutoxp / python-guide.sh
Created February 10, 2020 05:19 — forked from fernandolcouto/python-guide.sh
The definitive guide to setup my Python workspace
# The definitive guide to setup my Python workspace
# Author: Henrique Bastos <henrique@bastos.net>
PY3=3.8.0
#PY2=2.7.16
PY3TOOLS="youtube-dl pandas s3cmd fabric pytest"
#PY2TOOLS="rename mercurial"
VENVS=~/.ve
PROJS=~/workspace
@gutoxp
gutoxp / beautiful_idiomatic_python.md
Created August 12, 2019 01:55 — forked from 0x4D31/beautiful_idiomatic_python.md
[Beautiful Idiomatic Python] Transforming Code into Beautiful, Idiomatic Python #python

Transforming Code into Beautiful, Idiomatic Python

Notes from Raymond Hettinger's talk at pycon US 2013 video, slides.

The code examples and direct quotes are all from Raymond's talk. I've reproduced them here for my own edification and the hopes that others will find them as handy as I have!

Looping over a range of numbers

for i in [0, 1, 2, 3, 4, 5]:
@gutoxp
gutoxp / History|-169bef9e|entries.json
Last active June 12, 2023 20:46 — forked from kelvinst/git-aliases.md
Git alias - seja rápido, seja breve!
{"version":1,"resource":"file:///home/guto/workspace/cielo-smart-terminal-buzios-android/common/mqtt_prot.c","entries":[{"id":"WbgK.c","timestamp":1663901915417}]}