Skip to content

Instantly share code, notes, and snippets.

@tyrasd
tyrasd / index.html
Last active August 29, 2015 13:55
2014 Sochi Olympics ski venues in the Krasnaya Polyana mountain cluster
<!DOCTYPE html>
<html>
<head>
<title>2014 Sochi Olympics ski venues in the Krasnaya Polyana mountain cluster</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!--leaflet-->
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.2/leaflet.css" />
<script src="http://cdn.leafletjs.com/leaflet-0.7.2/leaflet.js"></script>
</head>
@tyrasd
tyrasd / overpass.geojson
Last active August 29, 2015 13:56 — forked from anonymous/overpass.geojson
“type:node and name=* and amenity=restaurant in Graz”
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tyrasd
tyrasd / imports.md
Last active August 29, 2015 13:59
Über Imports

Imports sind für OpenStreetMap ein sehr zweischneidiges Schwert: Natürlich führen sie kurzfristig zu besseren Daten, aber sie führen zu keiner nachhaltigen Stärkung der Community. Vor allem von Außen kommende Imports sind für OSM nicht nachhaltig, weil sie keine neuen Mapper anlocken und nicht einmal bestehende Mapper einbindet. Bei OSM kommt es nicht so sehr auf die Quantität der Daten an. Viel wichtiger sind Qualitätsmerkmale wie Aktualität, Ausgewogenheit, Nützlichkeit, relative Genauigkeit, usw.

Was ich meine ist: Wenn eine Gegend/Dorf/... in OSM noch schlecht

@tyrasd
tyrasd / README.md
Created April 17, 2014 08:27 — forked from mbostock/.block

In honor of the vernal equinox, this animation shows the progression of the solar terminator at approximately 5.2 million times its normal rate. Each frame of the animation advances twenty-four hours ahead of real-time so that the seasonal changes of the solar terminator are visible. The blue region is night; the white region is day. Best accompanied with the theme song from Buck Rogers.

@tyrasd
tyrasd / naturdenkmale.geojson
Last active August 29, 2015 14:00
Naturdenkmäler OGD Steiermark
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tyrasd
tyrasd / overpass.geojson
Last active August 29, 2015 14:01 — forked from anonymous/overpass.geojson
"3D"-Mapping
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tyrasd
tyrasd / index.html
Last active August 29, 2015 14:09 — forked from zross/index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7/leaflet.css" />
<script src="http://d3js.org/d3.v3.min.js" type="text/javascript"></script>
<script src="http://cdn.leafletjs.com/leaflet-0.7/leaflet.js"></script>
<script src='https://api.tiles.mapbox.com/mapbox.js/v1.6.4/mapbox.js'></script>
<link href='https://api.tiles.mapbox.com/mapbox.js/v1.6.4/mapbox.css' rel='stylesheet' />
@tyrasd
tyrasd / index.js
Created January 14, 2015 11:29
check if two GeoJSON geometries are equal
function equals(g1,g2) {
function _equalCoords(c1,c2) {
if (typeof c1 === 'number')
return c1===c2;
else
if (Array.isArray(c1) && Array.isArray(c2) && c1.length===c2.length)
return c1.reduce(function(memo, val, index) {
return memo && _equalCoords(c1[index], c2[index]);
}, true);
else
@tyrasd
tyrasd / index.html
Created December 2, 2012 10:19
Canvas floating point precision underflow - used to be a showcase for https://github.com/systemed/iD/issues/163 - keeping as a scrubby example usecase for me
<!doctype html>
<title>Scrubby</title>
<script src='http://nornagon.github.com/scrubby/scrubby.all.js'></script>
<style>
body { text-align: center; margin: 0; }
canvas {
box-shadow: 1px 1px 6px rgba(0,0,0,0.4);
}
#code {
text-align: left;
@tyrasd
tyrasd / map.geojson
Last active December 13, 2015 08:33 — forked from anonymous/map.geojson
tiles of osm-qa-tiles "italy" extract
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.