Skip to content

Instantly share code, notes, and snippets.

@lfborjas
Created March 5, 2013 01:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lfborjas/5087403 to your computer and use it in GitHub Desktop.
Save lfborjas/5087403 to your computer and use it in GitHub Desktop.
fugly foobar
eval(
(%w[
1 0
1 0 0
]).zip(%w[
o d
e v n
]).map{ |(to, fro)|
%Q{
#{to}.upto(9) do |#{fro}|
}
}.concat([
"if 2 * (( 100 * o ) + ( 11 * d )) == ((1000 * e) + (100 * v) + (10 * e) + n)" <<
%q{
puts "ODD = #{%w:o d d:.map{|it| eval(it)}.join} " +
"and "+
"EVEN = #{%w:e v e n:.map{|it| eval(it)}.join}"
} <<
" #{6.times.collect{ "\nend\n" }.join}"
])
.join
)
@syntacticsugar
Copy link

F***!

you just had to steal the video clip of me whipping out Haskell in Emacs and photoshop your face on it.

i am beyond words.

@ryanwitt
Copy link

ryanwitt commented Mar 5, 2013

@rabialam
Copy link

rabialam commented Mar 6, 2013

I prefer the term "Horse and sparrow" — if you make the horse eat enough oats the sparrows should be able to pick through the sh!t and find enough to survive...

@rabialam
Copy link

rabialam commented Mar 6, 2013

I know we're not talking about trickle down economics but I figured, eh, what the hell

@lfborjas
Copy link
Author

lfborjas commented Mar 6, 2013

I go out for a couple of hours and find these comments <3 <3 <3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment