Skip to content

Instantly share code, notes, and snippets.

@harsha547
harsha547 / .block
Last active July 7, 2019 15:20
Object Constancy in Animated Transitions
license: mit
height: 800
@harsha547
harsha547 / .block
Created July 6, 2019 20:30
Brushable horizontal bar chart
license: mit
@harsha547
harsha547 / .block
Last active July 6, 2019 20:29
Early Warning Project, Interim
license: mit
@harsha547
harsha547 / .block
Created July 6, 2019 20:28
DashBoard
license: gpl-3.0
@harsha547
harsha547 / python batch geocoding.py
Created November 1, 2018 16:56 — forked from shanealynn/python batch geocoding.py
Geocode as many addresses as you'd like with a powerful Python and Google Geocoding API combination
"""
Python script for batch geocoding of addresses using the Google Geocoding API.
This script allows for massive lists of addresses to be geocoded for free by pausing when the
geocoder hits the free rate limit set by Google (2500 per day). If you have an API key for paid
geocoding from Google, set it in the API key section.
Addresses for geocoding can be specified in a list of strings "addresses". In this script, addresses
come from a csv file with a column "Address". Adjust the code to your own requirements as needed.
After every 500 successul geocode operations, a temporary file with results is recorded in case of
script failure / loss of connection later.
Addresses and data are held in memory, so this script may need to be adjusted to process files line
from zeep import Client
from pprint import pprint
wsdl = 'http://psleci.nic.in/GService.asmx?wsdl'
client = Client(wsdl)
def parseElements(elements):
all_elements = {}
for name, element in elements:
@harsha547
harsha547 / .block
Created March 20, 2018 18:06
data-storytelling-d3-workshop-11
license: mit
@harsha547
harsha547 / .block
Created March 20, 2018 17:54
Grid layout in v4
license: mit
@harsha547
harsha547 / Layout.jade
Created February 4, 2018 11:28
Layout jade from brad traversy
doctype html
html(lang='en')
head
title Welcome
link(rel='stylesheet', href='/stylesheets/bootstrap.css')
link(rel='stylesheet', href='/stylesheets/style.css')
body
.navbar.navbar-default(role='navigation')
.container
.navbar-header
@harsha547
harsha547 / .block
Created October 9, 2017 15:56
fresh block
license: mit