Skip to content

Instantly share code, notes, and snippets.

@mapsam
mapsam / test.geojson
Created October 8, 2016 17:50
mapbox-tile-copy geojson
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mapsam
mapsam / .md
Last active October 5, 2016 20:56
Mapnik zoom level issue test cases

Failure

Map XML (within tilelive bridge)

<Map srs="+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over" buffer-size="256" base="/Users/mapsam/mapbox/tilelive-bridge/" maximum-extent="-20037508.34,-20037508.34,20037508.34,20037508.34">
  <Parameters>
    <Parameter name="bounds">-71.547459,42.834546,-71.534092,42.845709</Parameter>
    <Parameter name="center">-71.5407755,42.8401275,0</Parameter>
    <Parameter name="format">pbf</Parameter>
@mapsam
mapsam / 0_reuse_code.js
Created September 21, 2016 17:33
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@mapsam
mapsam / .md
Created September 13, 2016 20:39
LatLngBounds doc.js example
/**
 * A `LngLatBounds` object represents a geographical bounding box,
 * defined by its southwest and northeast points in longitude and latitude.
 *
 * If no arguments are provided to the constructor, a `null` bounding box is created.
 *
 * Note that any Mapbox GL method that accepts a `LngLatBounds` object as an argument or option
 * can also accept an `Array` of two [`LngLatLike`](#LngLatLike) constructs and will perform an implicit conversion.
 * This flexible type is documented as [`LngLatBoundsLike`](#LngLatBoundsLike).
@mapsam
mapsam / .md
Last active September 15, 2016 01:24
Unpacker Tagging Party

There's a bug in npm that doesn't dedup Git URLs in package.json dependencies: npm/npm#3081

Node Mapnik dependents

  • happytiff
    • mapnik-omnivore
  • mapbox-geostats
  • mapbox-map-metadata
    • tilelive-omnivore
    • tilelive-vector
@mapsam
mapsam / ca-counties.geojson
Created September 8, 2016 18:02
CA Counties
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mapsam
mapsam / .txt
Created August 24, 2016 16:00
Node GDAL Crash
Process: node [62395]
Path: /Users/USER/*/node
Identifier: node
Version: ???
Code Type: X86-64 (Native)
Parent Process: bash [62050]
Responsible: Terminal [1075]
User ID: 501
Date/Time: 2016-08-24 10:53:38.520 -0500
@mapsam
mapsam / bridge.md
Created August 18, 2016 14:32
Foss4g CSS Animations

Bridge

<path fill="#a6a095" id="lift-bridge" d="M479.744,164.871c3.056,0.847,6.071,1.735,9.039,2.642v-1.045c-12.883-3.925-26.639-7.56-40.882-8.434
	v-5.217h-10v5.091c-14.294,0.531-27.971,4.07-40.833,7.742v1.041c3.023-0.865,6.094-1.722,9.204-2.536l-9.204,9.325v3.697h91.715
	v-3.649L479.744,164.871z M407.401,174.699h-10.131l10.131-10.264V174.699z M408.401,174.699v-10.147l8.837,10.147H408.401z
	 M417.401,173.364l-8.588-9.861c2.83-0.712,5.693-1.377,8.588-1.973V173.364z M418.401,161.323c2.803-0.559,5.634-1.046,8.492-1.438
	l-8.492,13.121V161.323z M427.401,174.699h-8.904l8.904-13.758V174.699z M428.401,159.694c2.82-0.353,5.665-0.606,8.535-0.741
	l-8.535,13.969V159.694z M437.401,174.699h-8.914l8.914-14.589V174.699z M441.535,158.833c1.801,0,3.594,0.059,5.382,0.152
	l-4.016,6.571l-4.083-6.682C439.722,158.85,440.627,158.833,441.535,158.833z M438.401,160.11l3.914,6.405l-3.914,6.406V160.11z
@mapsam
mapsam / .md
Last active July 29, 2016 16:03
Mapsam.com resume

The website is jekyll-based (which you know plenty about!). The resume page at mapsam.com/resume uses these key files:

  1. _layouts/resume.html: this is template for the resume page. You'll notice a few different for loops on this page that look for jobs, cv items, and extras formally declared as "things" because I couldn't come up with a better word 😄
  2. resume/index.md: this is the meat of the potato, where all of the "data" for the resume exist. Notice in the YAML (the syntax for the top part of the file between the --- triple dashes) there are sections for jobs
@mapsam
mapsam / meetup-announcement.md
Last active June 17, 2016 22:46
MapboxSEA Git Lesson

We are going to jump into Git, the version control system behind GitHub. Many projects, geospatial or otherwise, rely on git to track changes made to source code and documentation so people can work collaboratively without accidental code deletions.

Lesson breakdown

  1. Git vocabulary quest
  2. GitHub and social coding
  3. Introduction to the command line
  4. Standard Git workflow
  5. Maps & GitHub
  6. Websites with GitHub pages (if time permits)