Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

next :: [Int] -> [Int]
next [] = []
next (i1:is) = case is of
[] -> [0]
i2:_ -> i2:(next' i1 is) where
next' l [] = [l]
next' l (i:is) = case is of
[] -> [i]
r:_ -> (l `xor` r):(next' i is) where
xor 0 0 = 0
@recurse
recurse / catalina.out
Created July 3, 2013 05:38
Log file from failed Shiro authentication attempt - correct password for this password attempt is 'anotherpass'
15:35:38.663 [http-8080-2] TRACE o.a.s.w.servlet.OncePerRequestFilter - Filter 'ShiroFilter' not yet executed. Executing now.
15:35:38.663 [http-8080-2] TRACE o.a.shiro.mgt.DefaultSecurityManager - Context already contains a SecurityManager instance. Returning.
15:35:38.663 [http-8080-2] TRACE o.a.shiro.mgt.DefaultSecurityManager - No identity (PrincipalCollection) found in the context. Looking for a remembered identity.
15:35:38.663 [http-8080-2] TRACE o.a.shiro.web.servlet.SimpleCookie - No 'rememberMe' cookie value
15:35:38.664 [http-8080-2] TRACE o.a.shiro.mgt.DefaultSecurityManager - No remembered identity found. Returning original context.
15:35:38.664 [http-8080-2] TRACE o.a.s.s.support.DelegatingSubject - attempting to get session; create = false; session is null = true; session has id = false
15:35:38.664 [http-8080-2] TRACE o.a.s.s.support.DelegatingSubject - attempting to get session; create = false; session is null = true; session has id = false
15:35:38.664 [http-8080-2] TRACE o.a.s.s.support
@recurse
recurse / index.html
Created November 1, 2012 08:15 — forked from mbostock/.block
Mobile Patent Suits
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<title>Mobile Patent Suits</title>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js?1.29.1"></script>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.geom.js?1.29.1"></script>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.layout.js?1.29.1"></script>
<style type="text/css">