Skip to content

Instantly share code, notes, and snippets.

View hevlastka's full-sized avatar

Hevlastka hevlastka

View GitHub Profile
@hevlastka
hevlastka / python.md
Created November 18, 2016 12:55
Idiomatic 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]:
@hevlastka
hevlastka / aurelia-started.md
Created February 22, 2017 16:15 — forked from kristianmandrup/aurelia-started.md
Aurelia Getting started - walk through

Aurelia

Recipe

  • Install NVM
  • Install IO.js
  • Install global Node.js utility modules (gulp, jspm, yo)
  • Install RethinkDB
  • Install Koa.js
  • Install Aurelia generator
  • Create Aurelia app via generator
@hevlastka
hevlastka / index.haml
Created March 14, 2019 16:21
Randomly generated Pure CSS menu icons w/ markup and SCSS
.grid
.panel
%i.fa.fa-arrow-left.close
%h1 HTML
%p.markup
%h2 CSS
%p.css
@hevlastka
hevlastka / codepen-challenge-polygon-surface.markdown
Created March 14, 2019 16:23
CodePen Challenge - Polygon Surface
@hevlastka
hevlastka / index.html
Created March 29, 2019 13:24
Text Glitch Effect
<h1 class="glitch" data-text="Ruh-Roh!">Ruh-Roh!</h1>
@hevlastka
hevlastka / index.html
Created March 29, 2019 13:29
Psycho Glitch (CSS variables & @Keyframes)
<p data-text="PSYCHO">PSYCHO</p>
Backup:
docker exec -t -u postgres your-db-container pg_dumpall -c > dump_`date +%d-%m-%Y"_"%H_%M_%S`.sql
Restore:
cat your_dump.sql | docker exec -i your-db-container psql -Upostgres