Skip to content

Instantly share code, notes, and snippets.


Kristofor Carle kriscarle

View GitHub Profile
kriscarle / .babelrc
Last active Oct 3, 2018
Next.js w/Ant Design Theming
View .babelrc
"presets": [
"plugins": [
View 1_wof_bundle_mato-grosso_85681955_county_simple.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View gist:4afc06ce2ab5ad92253493c9d0118e52
# rename TMS tiles to the XYZ schema
# no quoting, since all files have simple numeric names
# do not run this anywhere else than INSIDE your tiles directory
# run it like this: find . -name "*.png" -exec ./ {} \;
tmp=${filename#*/} # remove to first /
kriscarle / docker-compose.yml
Created Jan 26, 2017
Docker-compose for rancher, nginx and let's encrypt
View docker-compose.yml
image: jwilder/nginx-proxy:latest
- "80:80"
- "443:443"
- '/home/docker/nginx-proxy/ssl:/etc/nginx/certs:ro'
- '/etc/nginx/vhost.d'
- '/usr/share/nginx/html'
- '/var/run/docker.sock:/tmp/docker.sock:ro'

Keybase proof

I hereby claim:

  • I am kriscarle on github.
  • I am kriscarle ( on keybase.
  • I have a public key ASDncVPBqc2h0vL13wpfLD8ZuDLaylpGUs-dU7epMiKTTgo

To claim this, I am signing this object:

kriscarle / gist:be72d620318c2703ed60edbe490bcde9
Created Nov 11, 2016
DRC Logging Roads Created in 2015 (data exported 20161111)
View gist:be72d620318c2703ed60edbe490bcde9
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
kriscarle /
Last active Aug 29, 2015
OSM PostGIS Views

Like osm2pgsql but running directly on top of the OSM database!

kriscarle /
Created Feb 14, 2015
Mapbox Tiles in ArcGIS Runtime for Flex
package {
import com.esri.ags.SpatialReference;
import com.esri.ags.geometry.Extent;
import com.esri.ags.geometry.MapPoint;
import com.esri.ags.layers.TiledMapServiceLayer;
import com.esri.ags.layers.supportClasses.LOD;
import com.esri.ags.layers.supportClasses.TileInfo;
kriscarle /
Last active Oct 11, 2016
Mapbox tiles in ArcGIS Runtime SDK for Android
import com.esri.core.geometry.Envelope;
import com.esri.core.geometry.Point;
import com.esri.core.geometry.SpatialReference;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.client.ClientProtocolException;
import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.client.methods.HttpUriRequest;
kriscarle / dnn-captions.js
Last active Aug 29, 2015 — forked from ajtroxell/dnn-captions.js
display image caption in DNN using longdesc img attribute
View dnn-captions.js
$('.ModDNNHTMLC img').each(function(i) {
var img = $(this),
width = $(this).css('width'),
imageCaption = $(this).attr('longdesc'),
if (img.css('float') == 'left') {
img.css('float', '');
figure = $('<figure class="alignleft"></figure>').css('width', width).css('float', 'left');