Skip to content

Instantly share code, notes, and snippets.

@umr55766
umr55766 / citystategeo.js
Last active September 12, 2018 09:15 — forked from danasilver/citystategeo.js
Get city and state from Google Maps API Reverse Geocoder Response
if (window.navigator.geolocation) {
navigator.geolocation.getCurrentPosition(function (position) {
var lat = position.coords.latitude,
lng = position.coords.longitude,
latlng = new google.maps.LatLng(lat, lng),
geocoder = new google.maps.Geocoder();
geocoder.geocode({'latLng': latlng}, function(results, status) {
if (status == google.maps.GeocoderStatus.OK) {
if (results[1]) {
for (var i = 0; i < results.length; i++) {
@umr55766
umr55766 / how to install virtualenv in ubuntu 16 . 04.md
Last active April 16, 2023 15:13 — forked from Geoyi/install virtualenv ubuntu 16.04.md
How to install virtual environment on ubuntu 16.04

How to install virtualenv:

Install pip first

sudo apt-get install python3-pip

Then install virtualenv using pip3

sudo pip3 install virtualenv