Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
set -e -u
domain='http://geojson.io'
infile=''
if (uname | grep -q 'Darwin'); then
open='open'
else
open='xdg-open'
@ajashton
ajashton / QGIS Zoom Level Scales.xml
Created November 3, 2017 02:23
Web Mercator scale definitions for QGIS, z0-20. Go to Settings → Options → Map Tools to load
<qgsScales version="1.0">
<scale value="1:591657551"/>
<scale value="1:295828775"/>
<scale value="1:147914388"/>
<scale value="1:73957194"/>
<scale value="1:36978597"/>
<scale value="1:18489298"/>
<scale value="1:9244649"/>
<scale value="1:4622324"/>
<scale value="1:2311162"/>

My Internet Alphabet

Chrome autocompletion results for each letter typed in the address bar. Italics indicate letters that triggered no autocomplete; the most recent history item is listed instead.

  • atrium.developmentseed.org
  • b.tiles.mapbox.com
  • cloudmade.com
  • developmentseed.org
  • en.wikipedia.org
  • facebook.com
|( • ‿ • )|
|( U ‿ U )|
|( U ⁔ U )|
|( ° - ° )|
|( × _ × )|
-- Instance of ST_AsText that can handle an array of geometries
create or replace function ST_AsText(geometry[])
returns text
language plpgsql immutable as
$$
declare
g geometry;
res text := '{';
begin
if $1 is null or array_length($1, 1) = 0 then
text: 12 'Arial Regular' line;
// text-size: 12;
// text-face-name: 'Arial Regular';
// text-placement: line;
text-wrap: before 100 '|';
// text-wrap-before: true;
// text-wrap-width: 100;
// text-wrap-character: '|';
#maki {
marker-file: url("/home/aj/Code/maki/src/[icon]-[size].svg");
marker-allow-overlap: true;
[zoom>=6] {
[size=12] { marker-width: 12 * 2; }
[size=18] { marker-width: 18 * 2; }
[size=24] { marker-width: 24 * 2; }
}
[zoom>=7] {
[size=12] { marker-width: 12 * 3; }
<!DOCTYPE html>
<html>
<head>
<script src='http://api.tiles.mapbox.com/mapbox.js/v1.0.2/mapbox.js'></script>
<link href='http://api.tiles.mapbox.com/mapbox.js/v1.0.2/mapbox.css' rel='stylesheet' />
<!--[if lte IE 8]>
<link href='http://api.tiles.mapbox.com/mapbox.js/v1.0.2/mapbox.ie.css' rel='stylesheet' >
<![endif]-->
<style>
body { margin:0; padding:0; }
<!DOCTYPE html>
<html>
<head>
<script src='http://api.tiles.mapbox.com/mapbox.js/v1.0.2/mapbox.js'></script>
<link href='http://api.tiles.mapbox.com/mapbox.js/v1.0.2/mapbox.css' rel='stylesheet' />
<!--[if lte IE 8]>
<link href='http://api.tiles.mapbox.com/mapbox.js/v1.0.2/mapbox.ie.css' rel='stylesheet' >
<![endif]-->
<style>
body { margin:0; padding:0; }
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.