Skip to content

Instantly share code, notes, and snippets.

View nerik's full-sized avatar
🤩

Erik Escoffier nerik

🤩
View GitHub Profile

Music for working, programming, reading, …

…sleeping, meditating, yoga, after hour…. Mostly ambient, drone, (neo-)classical, dub, minimal techno, deep house, micro house, downtempo, slo-mo house, ketapop, schneckno, jetlagdisco, post-rock, lowfi hip hop…

Please feel free to comment your recommendations.

@tiagojsag
tiagojsag / aio.sh
Last active March 14, 2023 13:25
All-in-one command to checkout, commit and push git changes
#!/usr/bin/env bash
########################
# GIT AIO
# Author: https://github.com/tiagojsag
#
# This command accepts two optional arguments:
# -b: if given, a ne branch is checked out. By default, it uses the current branch
# -m <message>: commit message. If not provided, you will be prompted for it
#
@tmcw
tmcw / xyz_vs_tms.md
Last active April 3, 2024 06:18
The difference between XYZ and TMS tiles and how to convert between them

The difference between XYZ and TMS tiles and how to convert between them

Lots of tile-based maps use either the XYZ or TMS scheme. These are the maps that have tiles ending in /0/0/0.png or something. Sometimes if it's a script, it'll look like &z=0&y=0&x=0 instead. Anyway, these are usually maps in Spherical Mercator.

Good examples are OpenStreetMap, Google Maps, MapBox, MapQuest, etc. Lots of maps.

Most of those are in XYZ. The best documentation for that is slippy map tilenames on the OSM Wiki, and Klokan's Tiles a la Google.