Skip to content

Instantly share code, notes, and snippets.

@NelsonMinar
NelsonMinar / README.md
Last active December 17, 2015 11:19 — forked from mbostock/.block
Vector slippy map of rivers built entirely in D3, no other mapping library.
@NelsonMinar
NelsonMinar / patch
Created May 20, 2013 14:29
Patch for PostgresSQL bug on Macs. Modified slightly from upstream fix so that it applies cleanly. Originally from https://github.com/postgres/postgres/commit/6563fb2b45146852601e63828308fe04fb03b9e9
From 6563fb2b45146852601e63828308fe04fb03b9e9 Mon Sep 17 00:00:00 2001
From: Tom Lane <[email protected]>
Date: Thu, 16 May 2013 15:04:31 -0400
Subject: [PATCH] Fix fd.c to preserve errno where needed.
PathNameOpenFile failed to ensure that the correct value of errno was
returned to its caller after a failure (because it incorrectly supposed
that free() can never change errno). In some cases this would result
in a user-visible failure because an expected ENOENT errno was replaced
with something else. Bogus EINVAL failures have been observed on OS X,
@NelsonMinar
NelsonMinar / tiles.C
Created May 25, 2013 20:45
The oldest "fun" program of mine I could find, from November 1990. Sadly I've lost all my code from earlier, like the amazing 4 person "Snake" game I wrote in Apple ][ assembler when I was about 12 years old.
#include <stdio.h>
#include <stdlib.h>
#include <X11/Xlib.h>
#ifdef BIGBITMAPS
const unsigned tileWidth = 16;
const unsigned tileHeight = 16;
const char tile0Name[] = "./big0.bm";
const char tile1Name[] = "./big1.bm";
#else
@NelsonMinar
NelsonMinar / Control.NominatimGeocoder.css
Last active December 18, 2015 13:18
Rivers: search + Stamen terrain
.leaflet-control-geocoder a {
background-position: 50% 50%;
background-repeat: no-repeat;
display: block;
}
.leaflet-control-geocoder {
box-shadow: 0 1px 7px #999;
background: #f8f8f9;
-moz-border-radius: 8px;
@NelsonMinar
NelsonMinar / README.md
Last active June 18, 2025 22:51
TopoJSON vector maps from OSM

Fun with vector maps

Quick TopoJSON vector tile demo map, derived from an earlier GeoJSON demo. Original README follows.

A goofy slippy map of various vector tile data sources. With some fun colours, greetz to Aaron and Mike and Mike and the whole Prettymaps crew.

Sacramento, CA

@NelsonMinar
NelsonMinar / README.txt
Last active October 9, 2022 05:39
GTA V Map Viewer
Tools for making a very simple web slippy map of Grand Theft Auto V maps.
By Nelson Minar <[email protected]>
I don't want to host this map myself because of copyright concerns.
No support provided for this code, just hoping it's a useful guide for
someone to roll their own amp.
maketiles.sh runs gdal2tiles.py to slice up the source image into tiles.
map.html is a simple Leaflet / web map.
@NelsonMinar
NelsonMinar / keybase.md
Created March 20, 2014 00:56
keybase.io verification

Keybase proof

I hereby claim:

  • I am NelsonMinar on github.
  • I am nelson (https://keybase.io/nelson) on keybase.
  • I have a public key whose fingerprint is F383 0921 214E 22B3 5789 C4A9 58B7 73C3 2A05 036F

To claim this, I am signing this object:

@NelsonMinar
NelsonMinar / brew config
Created April 22, 2014 23:25
Homebrew ggobi build problem
HOMEBREW_VERSION: 0.9.5
ORIGIN: https://github.com/Homebrew/homebrew.git
HEAD: 9c37fb969b2f6c5a998bdfed3de9efdb83aacfc6
HOMEBREW_PREFIX: /usr/homebrew2
HOMEBREW_CELLAR: /usr/homebrew2/Cellar
CPU: 8-core 64-bit sandybridge
OS X: 10.9.2-x86_64
Xcode: 5.1.1
CLT: 5.1.0.0.1.1396320587
Clang: 5.1 build 503
@NelsonMinar
NelsonMinar / 01.make
Last active August 29, 2015 14:00
homebrew bug installing mg
gcc -O2 -pipe -g -Wall -Werror -Wno-error=unused-but-set-variable -Wno-error=maybe-uninitialized -DFKEYS -DREGEX -DXKEYS -I/usr/local/include/clens -Wno-strict-aliasing -c autoexec.c
gcc -O2 -pipe -g -Wall -Werror -Wno-error=unused-but-set-variable -Wno-error=maybe-uninitialized -DFKEYS -DREGEX -DXKEYS -I/usr/local/include/clens -Wno-strict-aliasing -c basic.c
gcc -O2 -pipe -g -Wall -Werror -Wno-error=unused-but-set-variable -Wno-error=maybe-uninitialized -DFKEYS -DREGEX -DXKEYS -I/usr/local/include/clens -Wno-strict-aliasing -c bell.c
gcc -O2 -pipe -g -Wall -Werror -Wno-error=unused-but-set-variable -Wno-error=maybe-uninitialized -DFKEYS -DREGEX -DXKEYS -I/usr/local/include/clens -Wno-strict-aliasing -c buffer.c
gcc -O2 -pipe -g -Wall -Werror -Wno-error=unused-but-set-variable -Wno-error=maybe-uninitialized -DFKEYS -DREGEX -DXKEYS -I/usr/local/include/clens -Wno-strict-aliasing -c cinfo.c
gcc -O2 -pipe -g -Wall -Werror -Wno-error=unused-but-set-variable -Wno-error=maybe-uninitialized -DFKEYS -DREGEX -DX