Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Ruby is beautiful

Name: Anonymous 2009-08-26 15:25

class Cycle
    def cycle(*args)
      args[((@_cycles ||= Hash.new(-1))[args.hash] += 1) % args.size]
    end
end

More beautiful code plees?

Name: Anonymous 2012-01-26 18:22


#!/usr/bin/env ruby1.9
N=ARGV[0].to_i
B=ARGV[1].to_i
Array.new(N<B ? N : B) {|i|N.to_s(i+2)}.each_with_index{|e,i|e.match(/(\d)\1$/)&&printf("[%02d] %s\n",i+2,e) }


Ah the pleasure of being cummed inside

Name: Anonymous 2012-01-26 18:23

<<< CHECK MY DUBS IN THE FOLLOWING BASES
[03] 10000
[05] 311
[07] 144
[09] 100
[26] 33

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List