Skip to content

Instantly share code, notes, and snippets.

View jszakmeister's full-sized avatar

John Szakmeister jszakmeister

View GitHub Profile
diff -urN trac-backlog-0.2.2/backlog/web_ui.py trac-backlog-0.2.2-readonly-without-perms/backlog/web_ui.py
--- trac-backlog-0.2.2/backlog/web_ui.py 2011-10-10 13:09:39.000000000 +0000
+++ trac-backlog-0.2.2-readonly-without-perms/backlog/web_ui.py 2011-10-13 07:54:37.261926597 +0000
@@ -10,6 +10,7 @@
from trac.core import *
from trac.db import DatabaseManager
from trac.env import IEnvironmentSetupParticipant
+from trac.perm import IPermissionRequestor
from trac.ticket.api import ITicketChangeListener
from trac.ticket.model import Ticket
@cgrand
cgrand / maze.clj
Created January 24, 2011 08:02
A maze generator (Wilson's algorithm) which can work with any topography (hextiles, torus variants, teapot etc.)
; http://groups.google.com/group/clojure/browse_thread/thread/974e2c7f89e27231/5f4bff3e58dfa36f
; output images http://i.imgur.com/gSASS.png (square maze)
; http://i.imgur.com/uEqaq.png (hex maze)
;; generic Wilson's algorithm implementation
(defn maze
"Returns a random maze carved out of walls; walls is a set of
2-item sets #{a b} where a and b are locations.
The returned maze is a set of the remaining walls."
[walls]