Skip to content

Instantly share code, notes, and snippets.

View jannschu's full-sized avatar

jannschu

  • Hobbyist / Student
  • Germany
View GitHub Profile
@jannschu
jannschu / traumdreieck.rb
Created February 14, 2011 21:15
bwinf.de 2010/2011 2nd round, ex. 3
puts "bwinf.de 2010/2011 2nd round, ex. 3"
puts "Copyright (c) Jannik Schuerg 2011, GPLv3"
puts
if ARGV[0] =~ /[1-9]\d*/
n = ARGV[0].to_i
else
puts "Usage: traumdreieck.rb <number of levels>"
end
conditions = []
@jannschu
jannschu / gist:478460
Created July 16, 2010 15:00
PKZIP explode/decompress in Haskell
{-
- Copyright (C) 2010 Ovillo <http://github.com/jannschu/ovillo>
- Thanks to Ben Rudiak-Gould on comp.compression for a description
- and Mark Adler for an intresting implementation with "blast.c".
-
- This file is part of Ovillo.
-
- Ovillo is free software: you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation, either version 3 of the License, or