Skip to content

Instantly share code, notes, and snippets.

Thomas Gratier ThomasG77

Block or report user

Report or block ThomasG77

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
tomhicks / plink-plonk.js
Last active May 28, 2020
Listen to your web pages
View plink-plonk.js
pramsey / vsicurl_ogr_fdw.sql
Last active Nov 25, 2019
OGR FDW against remote static files
View vsicurl_ogr_fdw.sql
-- Not only does this FDW definition read a remote file over HTTP and provide
-- a tabular view of the data, it also does so even though the file
-- is encased in a ZIP file!
-- See for more magic.
veltman /
Last active Sep 27, 2019
Making a big image zoomable

Making a big image zoomable

When you have a giant image and you want to make it easy to pan and zoom without downloading the whole 50MB image into someone's browser, a nice workaround is to cut that image into tiles at different zoom levels and view it as it were a map. An example where I've used this technique is The "Snowpiercer" Scenario.

One way to cut your big image into the requisite tiles is with

Alternatively, this Node script will do the cutting after you install node-canvas and mkdirp:

const fs = require("fs"),
avoidik /
Created Oct 29, 2018
AWS query examples

Top 10 Examples of AWS CLI Query

List Volumes showing attachment using Dictionary Notation

$ aws ec2 describe-volumes \
  --query 'Volumes[*].{ID:VolumeId,InstanceId:Attachments[0].InstanceId,AZ:AvailabilityZone,Size:Size}'
        "InstanceId": "i-a071c394",
Pessimistress / index.html
Last active Dec 19, 2019 + Mapbox Brushing Arcs
View index.html
<title>US County-to-County Migration</title>
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' />
<script src="^6.2.0/deckgl.min.js"></script>
<script src=""></script>
<link rel="stylesheet" type="text/css" href="">
<script src=""></script>
jgaffuri / .block
Last active Dec 22, 2019
Revenus en France, par commune
View .block
license: EUPL-1.1
height: 700
scrolling: no
border: yes
jsanz /
Last active Jul 31, 2018
#CARTO Maps API & #OpenLayers with #cartojs

Simple instantiation of an OpenLayers map loading tiles from CARTO Maps API.

kgjenkins /
Last active Mar 12, 2020
Labels with callout lines in QGIS

Labels with callout lines in QGIS

UPDATE: As of October 2019, QGIS 3.10 has built-in support for label callout lines!

Callouts, sometimes called leader lines, are lines between labels and features on a map. They are useful when constraints of space force a label to be moved away from the

View will be a replacement for, the simple editor for map data. In most ways, it has the same intent, goals, limitations, and ideas of - they're both projects of mine.

I created as a side project in 2013, and it thrived for a few years, as it simply solved the problem of previewing, modifying, and creating map data. I think it benefited from simplicity and unity of thought: it wasn't a product, it didn't have overarching design goals or any sort of leadership. There was the core functionality, and a bunch of functionality that pretty neatly layered on top of that without making the whole thing too intimidating. I'm pretty happy with how it went.

Over the last two or so years, though, hasn't changed much, and the web has. Which means that, in a few ways, it's just straight-up broken: GitHub integration is broken, it was never updated to accommodate for the deprecation of anonymous gists, and

jlis / .gitlab-ci.yml
Created May 15, 2018
AWS ECS and ECR deployment via Docker and Gitlab CI
View .gitlab-ci.yml
image: docker:latest
REGION: eu-central-1
You can’t perform that action at this time.