Skip to content

Instantly share code, notes, and snippets.

View nifoc's full-sized avatar
❄️
i use nix btw

Daniel Kempkens nifoc

❄️
i use nix btw
View GitHub Profile
@nifoc
nifoc / gist:9349753
Created March 4, 2014 16:25
Reverse Search Output
Calculating results:
...
Done!
Distance Similarity: 80.0
Polygon Simplification Factor: 1.0
ES Tree Level: 100m
Route Count
-------------------------------------------------------------
@nifoc
nifoc / gist:9348871
Created March 4, 2014 15:45
Routes for reverse search
ROUTES = [
['Oslo, Norway', 'Moss, Norway'],
['Oslo, Norway', 'Bergen, Norway'],
['Oslo, Norway', 'Drammen, Norway']
]
@nifoc
nifoc / gist:9270725
Last active August 29, 2015 13:56
Maps in 17.0-rc2
M = #{ foo => bar },
M#{ foo }.
% Running this using erl (Erlang/OTP 17 [RELEASE CANDIDATE 2] [erts-6.0]) returns:
%
% * 2: syntax error before: '}'
@nifoc
nifoc / gist:2988314
Created June 25, 2012 12:33
rbenv: Use global gemset
function rbglob_() {
local retpwd=$PWD
cd $HOME
export RBENV_GEMSETS=global
eval "$@"
unset RBENV_GEMSETS
cd $retpwd
}
alias rbglob='nocorrect rbglob_'