Skip to content

Instantly share code, notes, and snippets.

@sirupsen
Created March 12, 2011 22:46
Show Gist options
  • Save sirupsen/867655 to your computer and use it in GitHub Desktop.
Save sirupsen/867655 to your computer and use it in GitHub Desktop.
Ruby implementation of judofyr's codegolf challenge: http://codegolf.stackexchange.com/questions/1570/uptime-bash-penis
#!/usr/bin/env ruby
puts "8#{'='*STDIN.read[/\d/].to_i}D"
# $ uptime
# 23:42 up 56 days, 15:19, 2 users, load averages: 0.34 0.41 0.41
# $ uptime | ruby epenis.rb
# 8========================================================D
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment