Skip to content

Instantly share code, notes, and snippets.

@janlelis
janlelis / pws.rb
Created November 1, 2010 16:58
Build your own PasswordSafe with Ruby
# pws has been refactored! See https://github.com/janlelis/pws
# christmas tree (golfed version): http://www.ruby-mine.de/2009/11/22/weihnachten
puts"Grösse?"
(Z.times{|n|0.upto(Z){puts" "*(2*Z-n)+"*%d"%(n+=1)*n}
$*<<"%#{2*Z+2}s"%:II}
puts$*)if 0<Z=gets.to_i
@janlelis
janlelis / rack-notags.rb
Created November 14, 2009 14:41
Rack::NoTags
# # # #
# Rack::NoTags removes < and > from all incoming requests
# http://rbjl.net/12-rack-notags
#
# (c) 2009 - 2010 Jan Lelis
# This software is licensed under the MIT license.
# # # #
module Rack