Skip to content

Instantly share code, notes, and snippets.

View maebert's full-sized avatar
👨‍🚀
Confusing the persistent hallucination of thinking for the persistence of being

Manu Ebert maebert

👨‍🚀
Confusing the persistent hallucination of thinking for the persistence of being
View GitHub Profile
@maebert
maebert / unbox.sh
Created February 25, 2014 00:42
Setting up a new bac
#!/bin/bash
# This script automatically installs a bunch of command line (Git, wget,
# imagemagick, ...) and GUI (Dropbox, Chrome, Skype, ...) apps on a fresh
# Mac.
#
# It also sets up a Python Scientific Computing environment (matplotlib,
# scipy, iPython Notebook, ...)
#
# Requirement: Have the XCode Command Line Tools installed (download from
@kljensen
kljensen / vj.sh
Last active November 14, 2018 17:37
A simple, encrypted journal using vim.
#!/usr/bin/env bash
##########################################################
#
# This is a shell script for keeping a journal that is
# * plaintext,
# * time-stamped,
# * encrypted, and
# * edited with vim.
#
@maebert
maebert / instagram_unshred.py
Last active September 28, 2023 14:41
Instagram Engineering Challenge in 20 lines of code
# Problem to be solved:
# https://instagram-engineering.com/instagram-engineering-challenge-the-unshredder-7ef3f7323ab1
import PIL.Image, numpy, fractions
image = numpy.asarray(PIL.Image.open('TokyoPanoramaShredded.png').convert('L'))
diff = numpy.diff([numpy.mean(column) for column in image.transpose()])
threshold, width = 1, 0
def sequence(conn, start):
seq = [start]