Skip to content

Instantly share code, notes, and snippets.

View amarinelli's full-sized avatar
😅

Adam Marinelli amarinelli

😅
View GitHub Profile
@amarinelli
amarinelli / sample.geojson
Created July 18, 2014 16:47
Sample GeoJSON file
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@amarinelli
amarinelli / DateCalc.py
Last active August 29, 2015 14:04
Take 8 character string ("20140717") and turn into type Date
def CalcDate(string):
if (len(string) <> 8):
return
else:
return "{0}-{1}-{2}".format(string[:4], string[4:6], string[6:])
@amarinelli
amarinelli / City_temp.py
Last active August 29, 2015 14:03
Get city temperature in °C using openweathermap API
# -*- coding: cp1252 -*-
# Using http://openweathermap.org/
import urllib2
import json
def Convert(k):
return k - 273.15
location = raw_input("Select a city: ")