Skip to content

Instantly share code, notes, and snippets.

@mtrimpe
mtrimpe / info.json
Last active October 29, 2021 14:16
TileJSON.io - Amsterdam topo
{
"baseLayer": {
"tilejson": "2.2.0",
"name": "base",
"version": "1.0.0",
"scheme": "xyz",
"tiles": [
"https://a.tile.openstreetmap.org/{z}/{x}/{y}.png"
]
},

Keybase proof

I hereby claim:

  • I am mtrimpe on github.
  • I am mtrimpe (https://keybase.io/mtrimpe) on keybase.
  • I have a public key ASD4LEk5K2xAn9cmum_-2pCHv-k7jJeQB53giZGC--iNxgo

To claim this, I am signing this object:

@mtrimpe
mtrimpe / private.xml
Created November 19, 2014 14:59
Kinesis Footpedal Bindings
<?xml version="1.0"?>
<root>
<devicevendordef>
<vendorname>KINESIS</vendorname>
<vendorid>0x05f3</vendorid>
</devicevendordef>
<deviceproductdef>
<productname>FOOTPEDAL</productname>
<productid>0x030c</productid>
</deviceproductdef>
@mtrimpe
mtrimpe / gist:3919144
Created October 19, 2012 16:19
Rename images to sort by entropy (PIL needed)
import Image
import os
from math import log
def entropy(img):
histogram = img.histogram()
log2 = lambda x:log(x)/log(2)
total = len(histogram)
counts = {}
for item in histogram: