Skip to content

Instantly share code, notes, and snippets.

View matkoniecz's full-sized avatar

Mateusz Konieczny matkoniecz

View GitHub Profile
@psadk
psadk / paper.mrules
Last active August 13, 2016 07:56
Maperitive Paper Ruleset for printed maps
// Paper ruleset
//
// Ruleset for printed maps, for example to make notes while surveying.
// Designed with rather rural areas in mind (may however be usable
// in cities as well) in high zoom (14+, on lower levels map
// not very much readable).
//
// Licence: Creative Commons Attribution-ShareAlike 3.0
// http://creativecommons.org/licenses/by-sa/3.0/
@edtsech
edtsech / merge.rb
Created December 23, 2012 18:07
Merge two hashes/dictionaries in Ruby and Python.
h1 = { "a" => 100, "b" => 200 }
h2 = { "b" => 254, "c" => 300 }
h3 = h1.merge(h2)
h3 #=> {"a"=>100, "b"=>254, "c"=>300}
h1 #=> { "a" => 100, "b" => 200 }
@pksunkara
pksunkara / config
Last active May 22, 2024 13:43
Sample of git config file (Example .gitconfig) (Place them in $XDG_CONFIG_HOME/git)
[user]
name = Pavan Kumar Sunkara
email = pavan.sss1991@gmail.com
username = pksunkara
[init]
defaultBranch = master
[core]
editor = nvim
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol
pager = delta