Skip to content

Instantly share code, notes, and snippets.

@dinh
dinh / index.html
Last active May 14, 2017 17:16 — forked from anonymous/index.html
Tabbed Widget// source https://jsbin.com/vimikot
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Tabbed Widget<style id="jsbin-css">
body {
background: #eee
}
.widget {
@dinh
dinh / beautiful_idiomatic_python.md
Created February 21, 2022 09:57 — forked from lucasnad27/beautiful_idiomatic_python.md
Transforming Code into Beautiful, Idiomatic Python: notes from Raymond Hettinger's talk at pycon US 2013. 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!

Transforming Code into Beautiful, Idiomatic Python

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

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]: