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 / 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]
@maebert
maebert / mouse.pde
Created November 21, 2011 15:32
Dancing Mouse Mail Notification
/*
* Arduino Mail Notification
* http://www.portwempreludium.de
*
* See http://portwempreludium.tumblr.com/post/13068255903/dancing-mouse for details.
* Based on the XMAS hitcounter by tinkerlog.com
*/
int motorPin = 13; // control pin for servo motor
int mails = 0; // number of new mails