Skip to content

Instantly share code, notes, and snippets.

View geospatialem's full-sized avatar
🌎
Mapping the world one commit at a time

Kitty Hurley geospatialem

🌎
Mapping the world one commit at a time
View GitHub Profile
@TheMapSmith
TheMapSmith / basemaps.md
Last active August 6, 2016 23:52
Quick basemap thoughts

Basemaps

Or baemaps if you're typing too quickly

First question:

How much work do you want to do

  1. All teh works
    Then desktop GIS is for you! Go ahead and find every single background layer you could ever think of and download it! Parks, roads, cemeteries, buildings, streams, water bodies, railroads, wetlands, parking lots, forests, farms...
    Now load them all up in your desktop GIS of choice (who are we kidding. It's ArcGIS). Style away! Don't forget to think about scale ranges. So style each thing for each scale range!
    Not keen on GUIs? Then grab an old dusty copy of Tilemill, load up each of your layers per usual, and then start writing CartoCSS. It's fun!
@francisrupert
francisrupert / government-and-civic-design-systems.md
Last active March 30, 2016 20:30
Design Systems and Style Guides: Government, Civic
anonymous
anonymous / config.json
Created January 6, 2016 18:06
Bootstrap Customizer Config
{
"vars": {
"@gray-base": "#000",
"@gray-darker": "lighten(@gray-base, 13.5%)",
"@gray-dark": "lighten(@gray-base, 20%)",
"@gray": "lighten(@gray-base, 33.5%)",
"@gray-light": "lighten(@gray-base, 46.7%)",
"@gray-lighter": "lighten(@gray-base, 93.5%)",
"@brand-primary": "darken(#428bca, 6.5%)",
"@brand-success": "#5cb85c",
@fawcett
fawcett / gist:2bb87013db5c0d986ac5
Created February 19, 2015 19:51
Maptime MSP - February 2015 Favorite Data Sources
Maptime MSP - February 2015 Favorite Data Sources
Hennepin County [Agata]
http://www.hennepin.us/your-government/open-government/gis-open-data
Minnesota Population Center - TerraPop [Agata]
http://www.terrapop.org/
National Highway Planning Network [Nat]
http://www.rita.dot.gov/bts/sites/rita.dot.gov.bts/files/publications/national_transportation_atlas_database/index.html
@mobilemind
mobilemind / git-tag-delete-local-and-remote.sh
Last active August 10, 2025 11:21
how to delete a git tag locally and remote
# delete local tag '12345'
git tag -d 12345
# delete remote tag '12345' (eg, GitHub version too)
git push origin :refs/tags/12345
# alternative approach
git push --delete origin tagName
git tag -d tagName
@hofmannsven
hofmannsven / README.md
Last active October 2, 2025 20:17
Git CLI Cheatsheet
@frankrowe
frankrowe / shp2gj.py
Last active November 1, 2022 17:54
PyShp, shp to geojson in python
import shapefile
# read the shapefile
reader = shapefile.Reader("my.shp")
fields = reader.fields[1:]
field_names = [field[0] for field in fields]
buffer = []
for sr in reader.shapeRecords():
atr = dict(zip(field_names, sr.record))
geom = sr.shape.__geo_interface__
buffer.append(dict(type="Feature", \
@Sikwan
Sikwan / Javascript: Json to Download CSV
Created December 18, 2012 10:30
Allow the browser to transform a JSON to CSV and Download it. Base version from : http://www.zachhunter.com/2010/11/download-json-to-csv-using-javascript/
function Json2CSV(objArray)
{
var
getKeys = function(obj){
var keys = [];
for(var key in obj){
keys.push(key);
}
return keys.join();
}, objArray = format_json(objArray)