import string import random ...
Python On Secure password generation ...
by Krzysztof Wilczynski,
January 09, 2011 01:27
Take a look on this ...
Ruby On It works, but it might not ...
by Krzysztof Wilczynski,
January 09, 2011 00:20
There is also this http://w...
Ruby On Fetch and parse feeds with ...
by Krzysztof Wilczynski,
August 24, 2010 12:42
Adam += 1, nice re-factoring.
uri.query = CGI.parse(uri.query).collect { |k, v| URI.escape("#{k}=#{override[k] || v}") }.join('&')
Ruby On Set value of key in uri
by Krzysztof Wilczynski,
August 22, 2010 12:29
Adam += 1 for the .merge! a...
override = { 'size' => 12345, 'foo' => 'quux' }
the_uri = 'http://example.com?size=123&foo=bar&answer=42'
...
Ruby On Set value of key in uri
by Krzysztof Wilczynski,
August 21, 2010 18:52
My impression is that you a...
attributes = Hash[openid_mapping.collect { |k, v| [k, result.values_at(*v).compact.first] }]
Ruby On Hash + Array refactor
by Krzysztof Wilczynski,
August 20, 2010 14:29
Try this one too ...
On th...
hash = Hash[*array.collect { |i| [i, f(i)] }.flatten]
Ruby On How to make it more idiomatic?
by Krzysztof Wilczynski,
August 16, 2010 12:22
Also, for MRI/REE version p...
def f(i) i ** 2 end ...
Ruby On How to make it more idiomatic?
by Krzysztof Wilczynski,
August 16, 2010 12:19
Try this one ...
class Hash
def include_object?(object_class)
self.collect { |k, v| v.values.grep(object_class).any? if v.is_a?(Hash) }.any?
...
Ruby On hash.include_class?, recursive
by Krzysztof Wilczynski,
August 15, 2010 22:13
I am not 100% sure whether ...

This amazing web site is re...