Skip to content

Instantly share code, notes, and snippets.

View aaj013's full-sized avatar
Alive

Asish Abraham Joseph aaj013

Alive
  • Computing Freedom Collective Pvt Ltd
  • Kerala, India
View GitHub Profile
import geocoder
import csv
import sys
import time
import json
input_csv = sys.argv[1]
out_provider = sys.argv[2]
out = open("output/output_"+out_provider+"_"+input_csv.strip('.csv')+"_"+str(time.strftime("%s", time.gmtime()))+".geojson","w")
output_geojson = {"type": "FeatureCollection","features": []}
with open(input_csv) as input_file:
@aaj013
aaj013 / install-tasking-manager-deb9.sh
Last active December 20, 2018 08:38
install-tasking-manager-deb9.sh
#---
#Install Script of Tasking-Manager on Debian 9 (Stretch)
#The script is referred from (https://github.com/hotosm/tasking-manager/wiki/Client-Install-Script-for-Ubuntu-16.04) with minor changes for Debian 9. The following commands can be copy / pasted into the fresh Debian 9 installation and it will end with a locally running version of the Tasking Manager 3 client application.
#---
sudo apt-get update &&
sudo apt-get -y upgrade &&
# Install Python 3.6.5 by building from source
sudo apt-get install -y make build-essential libssl-dev zlib1g-dev &&
sudo apt-get install -y libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm &&
@aaj013
aaj013 / elastislide-full.css
Created December 27, 2018 11:52
Elastislide CSS
/* General Demo Style */
@import url(https://fonts.googleapis.com/css?family=Lato:300,400,700);
html { height: 100%; }
*,
*:after,
*:before {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
@aaj013
aaj013 / elastislide-full.js
Created December 27, 2018 11:54
Elastislide JS
/* Modernizr 2.6.2 (Custom Build) | MIT & BSD
* Build: http://modernizr.com/download/#-csstransforms-csstransitions-touch-shiv-cssclasses-prefixed-teststyles-testprop-testallprops-prefixes-domprefixes-load
*/
;window.Modernizr=function(a,b,c){function z(a){j.cssText=a}function A(a,b){return z(m.join(a+";")+(b||""))}function B(a,b){return typeof a===b}function C(a,b){return!!~(""+a).indexOf(b)}function D(a,b){for(var d in a){var e=a[d];if(!C(e,"-")&&j[e]!==c)return b=="pfx"?e:!0}return!1}function E(a,b,d){for(var e in a){var f=b[a[e]];if(f!==c)return d===!1?a[e]:B(f,"function")?f.bind(d||b):f}return!1}function F(a,b,c){var d=a.charAt(0).toUpperCase()+a.slice(1),e=(a+" "+o.join(d+" ")+d).split(" ");return B(b,"string")||B(b,"undefined")?D(e,b):(e=(a+" "+p.join(d+" ")+d).split(" "),E(e,b,c))}var d="2.6.2",e={},f=!0,g=b.documentElement,h="modernizr",i=b.createElement(h),j=i.style,k,l={}.toString,m=" -webkit- -moz- -o- -ms- ".split(" "),n="Webkit Moz O ms",o=n.split(" "),p=n.toLowerCase().split(" "),q={},r={},s=
@aaj013
aaj013 / kl-boundary.geojson
Created July 28, 2020 18:23
Kerala state admin boundary
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.