Skip to content

Instantly share code, notes, and snippets.

View ragnarheidar's full-sized avatar

Ragnar Thrastarson ragnarheidar

View GitHub Profile
@ragnarheidar
ragnarheidar / IcelandicEarthquakes.py
Last active February 24, 2016 14:09
Python code that scrapes earthquake data and sends it to a CartoDB map
"""
Icelandic earthquakes in Iceland for the past 48 hours into CartoDB.
This script will:
1. Scrape earthquakes from the Iceland Met Office (past 48 hrs.)
2. Parse the resaults into a csv table and save it
3. Create a Python list from csv file
4. Use CartoDB SQL API to:
a) Truncate a table in CartoDB
b) Insert new records into the same table by wrapping Python list into SQL query
@ragnarheidar
ragnarheidar / README.md
Last active June 14, 2017 08:37
Leaflet Map showing NYC 311 complaints on loud music in the Bronx

Leaflet map for a Geovisualization class at Lehman Collage/CUNY (GEP-660, Instructor: Gretchen Culp). Base map provided by Stamen and icons by Font Awesome.