Created
April 11, 2012 17:24
-
-
Save gstark/2360699 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
((rand().to_i)...rand((rand(5000).to_i))).send(Enumerable.instance_methods[rand(Enumerable.instance_methods.size)]) { rand(6) > 2 } |
ah you are right :(
I guess we'll count that as "MY MOVE" ? ;-)
begin;!!(((rand().to_i)...rand((rand(5000).to_i))).send(Enumerable.instance_methods.sample(15).zip(Object.instance_methods.sample(15)).permutation(1).select { |a| a.length > rand(2) }.flatten.slice(rand(10))) { rand(6) > 2 })^32;rescue=>e;e.methods.product(Object.methods).slice(rand(10),rand(10)).size>rand(32);end
BTW, nice use of #sample -- forgot that was on Array.
Have to use as many versions of rand as possible
Man Enumerable#lazy is going to be awesome.
require 'open-uri'
(0..open("http://www.random.org/integers/?num=1&min=5&max=100&col=1&base=10&format=plain&rnd=new").read.to_i).count {rand(6)>2}
# Fails since I guess I exceeded random.org rate limit or something.
Question.ask("Does no one here know how to use code formatting in Github Flavored Markdown?")
true
Yeah, nobody cares...
But none of your code is indenting! How can you stand it?
I think it adds a certain je ne sais quoi
touché
Edited comments just cause I like Jason P so much.
I just realized this is kinda like our mogrify app for Rails Rumble but with less porn and more code...
This gist got legit.
is there code styling for memes?
AN IDEA APPEARS.
this gist if full of WIN
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Are you missing a #size on (e.methods - Object.methods) ? ZOMG, am I really code reviewing this!?!?!!?