1
2
3
4
require 'date'

now = Time.now
...

Ruby On Human Date Method

by scudco, July 05, 2008 21:48 Star_fullStar_fullStar_fullStar_full

Edit: Noticed that you had ...

7bdb696ac0f589522c9ed31a1b24057b Talk
1
2
3
4
alphanumerics = [*('0'..'9')] + [*('A'..'Z')] + [*('a'..'z')]
(0...25).map { alphanumerics[Kernel.rand(alphanumerics.size)] }.join

...

Ruby Generating a string of rand...

by scudco, July 02, 2008 18:23, 4 refactorings, tagged with random character, random

So this is kind of trivial ...

7bdb696ac0f589522c9ed31a1b24057b Talk