Gallery is a project mainly written in Ruby, it's free.
simple js gallery for flickr sets
A simple flickr gallery built in coffeescript