Skip to content

Instantly share code, notes, and snippets.

Avatar

Kristofor Carle kriscarle

View GitHub Profile
@kriscarle
kriscarle / .babelrc
Last active Oct 3, 2018
Next.js w/Ant Design Theming
View .babelrc
{
"presets": [
"next/babel",
"stage-0"
],
"plugins": [
"transform-decorators-legacy",
[
"import",
{
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
#!/bin/bash
# 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 ./tms2xyz.sh {} \;
filename=$1
tmp=${filename#*/} # remove to first /
@kriscarle
kriscarle / docker-compose.yml
Created Jan 26, 2017
Docker-compose for rancher, nginx and let's encrypt
View docker-compose.yml
nginx-proxy:
image: jwilder/nginx-proxy:latest
ports:
- "80:80"
- "443:443"
volumes:
- '/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'
View keybase.md

Keybase proof

I hereby claim:

  • I am kriscarle on github.
  • I am kriscarle (https://keybase.io/kriscarle) on keybase.
  • I have a public key ASDncVPBqc2h0vL13wpfLD8ZuDLaylpGUs-dU7epMiKTTgo

To claim this, I am signing this object:

@kriscarle
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
kriscarle / README.md
Last active Aug 29, 2015
OSM PostGIS Views
View README.md

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

@kriscarle
kriscarle / AGSMapboxLayer.as
Created Feb 14, 2015
Mapbox Tiles in ArcGIS Runtime for Flex
View AGSMapboxLayer.as
package com.kriscarle.map.util {
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;
import flash.net.URLRequest;
@kriscarle
kriscarle / AGSMapboxLayer.java
Last active Oct 11, 2016
Mapbox tiles in ArcGIS Runtime SDK for Android
View AGSMapboxLayer.java
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
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'),
figure
if(imageCaption){
if (img.css('float') == 'left') {
img.css('float', '');
figure = $('<figure class="alignleft"></figure>').css('width', width).css('float', 'left');
img.wrap(figure);