Created
September 6, 2009 00:00
-
-
Save jarinudom/181568 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
#!/usr/bin/env ruby | |
def tagz0r(char) | |
return char if char == " " | |
tagz0rz = %w{b i u s sub sup}.select{|c| rand(2) == 1} | |
colorz0r = %w{aqua black blue fuchsia magenta orange yellow cyan green lime purple red teal}[rand(13)] | |
sizez0r = (4..7).to_a[rand(4)] | |
fontz0r = ["Arial","Century Gothic","Book Antiqua","Comic Sans MS","Courier New","Fixedsys","Franklin Gothic Medium","Garamond","Impact","Lucida Console","System","Times New Roman","Trebuchet MS","Verdana"][rand(4)] | |
fart = tagz0rz.collect{|tagz0r| "[#{tagz0r}]"}.to_s | |
fart += "[color=#{colorz0r}][size=#{sizez0r}][font=#{fontz0r}]#{char}[/font][/size][/color]" | |
fart += tagz0rz.collect{|tagz0r| "[/#{tagz0r}]"}.to_s | |
end | |
out = "" | |
ARGV[0].split("").each do |char| | |
out += tagz0r(char) | |
end | |
puts out |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment