Skip to content

Instantly share code, notes, and snippets.

@0x4D31
0x4D31 / beautiful_idiomatic_python.md
Last active April 19, 2024 09:17 — forked from JeffPaine/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]:
@JuanCaicedo
JuanCaicedo / spacemacs-learning.md
Last active June 18, 2018 19:02
Questions I've had while learning spacemacs

Questions

  • How do you navigate around directories?
    • Open tree view in files neotree
      • Shortcuts for neotree in evilmode in the docs
      • Using search (/) can be super useful to move around quickly
    • Use SPC p D to open the project root in Dired, and use SPC f j to jump to the Dired buffer corresponding to current buffer.
      • Dired shortcuts
        • copy C
        • rename R
  • delete D
@evandrix
evandrix / pep20_by_example.py
Created March 13, 2012 18:45
PEP 20 (The Zen of Python) by example
#!/usr/bin/env python
"""
=====================================
PEP 20 (The Zen of Python) by example
=====================================
Usage: %prog
:Author: Hunter Blanks, hblanks@artifex.org / hblanks@monetate.com
@drj42
drj42 / org-mode-reference-in.org
Created February 6, 2012 23:53
This is a cheat sheet for Emacs org-mode... in org-mode format!