Skip to content

Instantly share code, notes, and snippets.

@MBalazs90
MBalazs90 / gist:10008212
Last active August 29, 2015 13:58
Idojaras V1.0
CREATE OR REPLACE FUNCTION idojaras(lat float, lon float)
RETURNS float AS $$
import sys
if sys.version_info[0] == 2:
from urllib2 import urlopen
else: # Python 3
from urllib.request import urlopen
import json
def get_temp(lat, lon):