Skip to content

Instantly share code, notes, and snippets.

View axgkl's full-sized avatar

Gunther Klessinger axgkl

View GitHub Profile
@axgkl
axgkl / lists_vs_sets.py
Created January 19, 2022 00:03
lists_vs_sets
"""
Perf lists versus sets for indexed operations.
"""
import random
import time
rand = lambda i: random.randint(1, i)
now = time.time
@axgkl
axgkl / unblockme.py
Created December 6, 2021 18:29
unblockme
~/repos/blog/src master ⇣1⇡1 +3 !22 ?18 ❯ cat unblockme.py
#!/usr/bin/env python
"""
# A Solver for the Android game [unblockme][1]
## Config
Supply the board's initial state like this:
- Every piece (block) gets a unique number, starting from 1, counting up
#!/usr/bin/env bash
set -eo pipefail
# from moby project - w/o go dependency (nailing amd64) and w/o jq dep (using
# python)
# hello-world latest ef872312fe1b 3 months ago 910 B
# hello-world latest ef872312fe1bbc5e05aae626791a47ee9b032efa8f3bda39cc0be7b56bfe59b9 3 months ago 910 B
# debian latest f6fab3b798be 10 weeks ago 85.1 MB
# debian latest f6fab3b798be3174f45aa1eb731f8182705555f89c9026d8c1ef230cbf8301dd 10 weeks ago 85.1 MB
@axgkl
axgkl / affirmation
Created April 9, 2015 00:19
MuleSoft Contributor Agreement Acceptance by gk
I, gk, have read and do accept the MuleSoft Contributor Agreement
at http://www.mulesoft.org/legal/contributor-agreement.html
Accepted on Thu Apr 09 2015 02:19:24 GMT+0200 (CEST)