sudo apt-get install python3-pip
sudo pip3 install virtualenv
| userData = { | |
| "Kapoor#1292": { | |
| "brick": 0, | |
| "grain": 0, | |
| "lumber": 0, | |
| "ore": 0, | |
| "wool": 0 | |
| }, | |
| "Nadeem#5285": { | |
| "brick": 0, |
| 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++) { |
| #!/bin/sh | |
| # blacken the staged files | |
| for file in $(git diff --cached --name-only | grep -E '\.(py)$') | |
| do | |
| black "$file" | |
| $(git add "$file") | |
| done | |
| for file in $(git diff --cached --name-only | grep -E '\.(py)$') |