Skip to content

Instantly share code, notes, and snippets.

View geohacker's full-sized avatar

Sajjad Anwar geohacker

View GitHub Profile

Add this to ~/.profile -

export LANGUAGE="en_US.UTF-8"
export LANG="en_US.UTF-8"
export LC_ALL="en_US.UTF-8"
  1. Run source ~/.profile
  2. sudo su postgres psql
  3. update pg_database set datistemplate=false where datname='template1';
@geohacker
geohacker / string.md
Last active August 29, 2015 13:56
String Matching Jugaad.
@geohacker
geohacker / bio.md
Last active August 29, 2015 13:57
Short Bio.

Sajjad Anwar is a hacktivist and programmer based in Bangalore. He works in the research and design of data infrastructure, analytics and infographics. He hearts maps and often makes one. He is found working with other technologists, social activists and, researchers in education, human rights and policy making. Along with two others, he runs the geohackers.in collective. Find him on twitter.

Download Photo.

@geohacker
geohacker / ohm-id.md
Created October 29, 2014 14:11
OpenHistoricalMap Wishlist for iD
  1. Filter features based on date.

Nepal HOT Validation: Road Network for Routing

High quality maps is critical to field work. Experienced mappers may validate existing data to fix serious errors and invalidate an area for further work.

Task Briefing

Review the work of existing mappers using the HOT Task Manager. Our priority is routing and we will focus on Road network tasks 1,2,3,6. Pick and unreviewed area and throughly examine the area for the following issues:

Incomplete Task If there are numeruous roads missing and requires a lot more work to improve the quality, /invalidate this task/ so that others can continue to improve it. Add a comment clearly describing the reason for invalidating. Get @geohacker or @planemad to look before you mark it invalid.

Isolated Segments

@geohacker
geohacker / gist:1605407
Created January 13, 2012 10:18
cloudmade_layer
var map = new L.Map('map');
var cloudmadeUrl = 'http://{s}.tile.cloudmade.com/API-KEY/997/256/{z}/{x}/{y}.png',
cloudmadeAttrib = 'Map data © 2011 OpenStreetMap contributors, Imagery © 2011 CloudMade',
cloudmade = new L.TileLayer(cloudmadeUrl, {maxZoom: 18, attribution: cloudmadeAttrib});
@geohacker
geohacker / gist:1605424
Created January 13, 2012 10:24
mapquest_layer
var map = new L.Map('map');
var mapquestUrl = 'http://{s}.mqcdn.com/tiles/1.0.0/osm/{z}/{x}/{y}.png',
subDomains = ['otile1','otile2','otile3','otile4'],
mapquestAttrib = 'Data, imagery and map information provided by <a href="http://open.mapquest.co.uk" target="_blank">MapQuest</a>,
<a href="http://www.openstreetmap.org/" target="_blank">OpenStreetMap</a> and contributors.
var mapquest = new L.TileLayer(mapquestUrl, {maxZoom: 18, attribution: mapquestAttrib, subdomains: subDomains});
@geohacker
geohacker / index.html
Last active December 10, 2015 16:48 — forked from mbostock/.block
<html>
<head>
<title>Bar Chart</title>
<script type="text/javascript" src="http://github.com/mbostock/d3/raw/v1.8.2/d3.js"></script>
<style type="text/css">
body {
font: 10px sans-serif;
}
@geohacker
geohacker / champions.json
Created September 3, 2013 08:39
Champions Map
{"features":[{"id":"V.Jayalakshmi","properties":{"Name":"V.Jayalakshmi","Number of sessions":1,"State":"Tamil Nadu","City ":"Sathyamangalam","geo_longitude":77.276,"geo_latitude":11.5845},"type":"Feature","geometry":{"type":"Point","coordinates":[77.276,11.5845]}},{"id":"Shailendra Singh","properties":{"Name":"Shailendra Singh","Number of sessions":1,"State":"New Delhi","City ":"New Delhi","geo_longitude":77.2159562,"geo_latitude":28.6138967},"type":"Feature","geometry":{"type":"Point","coordinates":[77.2159562,28.6138967]}},{"id":"R.S. Mathur","properties":{"Name":"R.S. Mathur","Number of sessions":1,"State":"New Delhi","City ":"New Delhi","geo_longitude":77.2159562,"geo_latitude":28.6138967},"type":"Feature","geometry":{"type":"Point","coordinates":[77.2159562,28.6138967]}},{"id":"Chandan Borthakur","properties":{"Name":"Chandan Borthakur","Number of sessions":1,"State":"Assam","City ":"Gohpur","geo_longitude":93.6323048,"geo_latitude":26.8879397},"type":"Feature","geometry":{"type":"Point","coordinates":[9
@geohacker
geohacker / map.geojson
Created September 3, 2013 08:48
via:geojson.io
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.