Skip to content

Instantly share code, notes, and snippets.

View jseppi's full-sized avatar
🍻
😄

James Seppi jseppi

🍻
😄
View GitHub Profile
@jseppi
jseppi / TNRIS.geojson
Last active August 29, 2015 13:56
TNRIS Logo in GeoJSON
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jseppi
jseppi / Rules
Last active July 4, 2016 06:59 — forked from bburton/Rules
Default Rules and nanoc.yaml for the nanoc static site generator. The included config.rb is useful for setting up Compass configuration properties if using Compass.
#!/usr/bin/env ruby
# This Rules file is an attempt at a near zero configuration for the common
# use cases when creating a simple site with nanoc. It's meant to have
# better defaults so new users don't have to configure it much if at all.
# For the most part, it copies all files from the content folder to the
# output folder with the same name. It has the following features:
#
# * Certain predefined page extensions such as html, haml, md, markdown and
# textile are routed to "clean" URI's (see below regarding Item identifiers).
@jseppi
jseppi / leaflet.EsriRestTileLayer.coffee
Last active April 6, 2019 17:54
Leaflet layer that retrieves tiles from an ArcGIS REST Map Service.
# Leaflet layer that retrieves tiles from an ArcGIS REST Map Service.
#
# The 'typical' way to use the ESRI/ArcGIS Server REST API is to request
# a single map image for the entire screen (as seen in the esri-leaflet.js
# DynamicMapLayer class https://github.com/Esri/esri-leaflet).
# That method is slow and the esri-leaflet implementation uses L.ImageOverlay,
# which doesn't mix well with Leaflet TileLayers.
# The implementation here instead is based on L.TileLayer and uses the
# ESRI REST API "export" method to get multiple images as tiles.
L.EsriRestTileLayer = L.TileLayer.extend(