Skip to content

Instantly share code, notes, and snippets.

@kanelai
kanelai / ubm-solver.py
Created June 9, 2016 15:26 — forked from Saren-Arterius/ubm-solver.py
Unblock Me solver
View ubm-solver.py
#!/usr/bin/env python3
# An Unblock Me solver written using A* search algorithm
# perfect solution
# Author: Saren
SIZE = 6
"""
GOAL = (
(' ', ' ', ' ', ' ', ' ', ' '),
(' ', ' ', ' ', ' ', ' ', ' '),
(' ', ' ', ' ', ' ', 'T', 'G'),
@kanelai
kanelai / gist:3db520c2b8c81fdb65df
Last active September 19, 2015 21:26 — forked from jonathan-wheeler/gist:0f8235f5904365e3c75a
Fix for WhatsApp in iOS 8 Beta
View gist:3db520c2b8c81fdb65df
/* Taken zigmob's (http://forums.macrumors.com/showthread.php?t=1742566) workaround a step further
And added some triggers to clean up these dodgy character combinations (ff, fi, fl).
Still crashes on initial message read but saves having to manually run the sql query eve time a message contains the character combinations */
-- Working well for me so far --
/*
Kane Lai 2014-07-13
Improved by updating only the affected row in the trigger.
Also, supplied the restore script too.
*/