Skip to content

Instantly share code, notes, and snippets.

@staeff
staeff / zeit_strassen_berlin.geojson
Last active April 3, 2022 16:23
Geodata for Berlin streets extracted from the Zeit data set Deutsche Straßennamen http://interactive.zeit.de/strassennamen/ License ODbL 1.0
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@staeff
staeff / zeit_plaetze_berlin.geojson
Last active March 21, 2022 19:56
Geodata for Berlin places extracted from the Zeit data set Deutsche Straßennamen http://interactive.zeit.de/strassennamen/ License ODbL 1.0
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@staeff
staeff / style.scss
Created January 30, 2017 10:02
Write BEM with SASS. BEM modules can be nested using the & to prefix our elements or modifiers
/* Sass 3.3+ w/BEM: */
.object {
color: red;
&__descendant {
color: black;
}
}
/* Generates:
@staeff
staeff / index.html
Last active November 2, 2017 15:29
Wikimedia API calls
<html>
<head>
</head>
<body>
<h2>Jpgs</h2>
<a href='https://de.wikipedia.org/wiki/Wikipedia:Hauptseite#/media/File:Fl%C3%BCchtlinge_in_Braunau_am_Inn_01.JPG' class='bootstrap_oembed'>
https://de.wikipedia.org/wiki/Wikipedia:Hauptseite#/media/File:Fl%C3%BCchtlinge_in_Braunau_am_Inn_01.JPG</a>
@staeff
staeff / README.md
Last active February 6, 2017 21:56
Get and process (oembed) data from flickr and wikimedia
  • Flickr
  • Wikimedia
@staeff
staeff / flickr.html
Last active February 6, 2017 21:51
Noembed data for youtube, vimeo, soundcloud, instagram, flickr, twitter
<div class="noembed-embed-inner noembed-flickr">
<a data-flickr-embed="true" href="https://www.flickr.com/photos/erlan/3255620919/" title="derFreitag by Erlan, on Flickr">
<img width="320" alt="derFreitag" src="https://noembed.com/i/https://farm4.staticflickr.com/3431/3255620919_a80244b88e_n.jpg" height="240">
</a>
<script async src="https://embedr.flickr.com/assets/client-code.js" charset="utf-8"></script>
</div>
@staeff
staeff / beautiful_idiomatic_python.md
Last active February 6, 2017 21:49 — forked from JeffPaine/beautiful_idiomatic_python.md
Transforming Code into Beautiful, 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]: