Skip to content

Instantly share code, notes, and snippets.

@serialhex
Created October 20, 2012 02:42
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 serialhex/3921765 to your computer and use it in GitHub Desktop.
Save serialhex/3921765 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
print "Content-Type: text/plain\r\n\r\n"
puts "foo"
@fibb=[0,1]
def fibb n
@fibb[n] ||= fibb(n-1) + fibb(n-2)
end
num = rand(25)
puts "\nfibb #{num} = #{fibb num}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment