I love programming. When I'm not working on a particular project I use that time to improve my programming skills. Whenever I want to experiment with a new programming technique, interesting library or certain programming language feature I write short programs - snippets of code just for practice. While code on this page is mostly helpful for educational purposes you may also find it useful for your project. I don't mind, use it however you like.

[Ruby] Solution to Project Euler's problem 15

first published: 13th Aug 2008, Solution to Project Euler's problem 15 on time-loop tumblr
programming language: Ruby
source: project-euler-solution-15.rb

[Haskell] Solution to Project Euler's problem 2

first published: 6th Jan 2008, Solution to Project Euler's problem 2 on time-loop tumblr
programming language: Haskell
source: project-euler-solution-2.hs

[Haskell] Solution to Project Euler's problem 1

first published: 5th Jan 2008, Solution to Project Euler's problem 1 on time-loop tumblr
programming language: Haskell
source: project-euler-solution-1.hs

[Python] Simple XML-generation helper

first published: 6th Apr 2008, on this page
programming language: Python
source: tag.py

[Python] General-purpose stringify function

first published: 6th Apr 2008, on this page
programming language: Python
source: stringify.py

[Ruby] General-purpose stringify function

first published: 6th Apr 2008, on this page
programming language: Ruby
source: stringify.rb

[Haskell] Solution to Ruby Quiz #76 (Text Munger)

first published: 6th Nov 2007, How to make this code more haskellish? on hpaste
programming language: Haskell
source: text-munger.hs and shuffle.hs

Solution to Code Kata Fifteen

first published: 5th Nov 2007, Solution to Code Kata Fifteen on mousebender blog

This is not a code snippet, but a proof of a relationship between the Fibonacci sequence and the number of combinations of binary numbers that don't have two adjacent 1s.

[Ruby] Crude with_delay "macro"

first published: 10th Aug 2007, with_delay implementation in Ruby on time-loop tumblr
programming language: Ruby
source: with-delay-in-ruby.rb

A solution to a problem described in "I really need code generation" post.

[Python] Cleanup & return problem

first published: 10th Aug 2007, Partial solution for cleanup&return problem on time-loop tumblr
programming language: Python
source: cleanup-and-return.py

A solution to a problem described in "Damn statements" post.

[Python] Map and filter for sets

first published: 19th May 2007, Minor annoyance on mousebender blog
programming language: Python
source: set-map-filter.py

[Python] Methods copying

first published: 17th Feb 2007, Copying methods in Python on mousebender blog
programming language: Python
source: copycat.py

[Python] Recursive getattr/setattr

first published: 10th Nov 2006, Recursive getattr/setattr on mousebender blog
programming language: Python
source: recursive_getattr_setattr.py

[Python] __init__ decorator for automatic attributes initalization

first published: 7th Mar 2006 (in Polish) Prosta inicjalizacja obiektów on my homepage
programming language: Python
source: init-from-args-decorator.py

If you're doing an interesting project and need a strong programmer don't hesitate to contact me. Check my current resume and see my profile on LinkedIn.