This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* 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 |
NewerOlder