Skip to content

Instantly share code, notes, and snippets.

@bastos
Created August 29, 2008 18:07
Show Gist options
  • Save bastos/8019 to your computer and use it in GitHub Desktop.
Save bastos/8019 to your computer and use it in GitHub Desktop.
require 'camping'
Camping.goes :E
def say_something
prefixo = ["Meu, ","No mercado vertical mano","Lá em Sampa meu,","Aê Fio","Po meu", "Um amigo chegou pra mim e falou Edu,", "Ahhh, de boa?", "Tá me tirando, fio?"]
pessoas = ["Adóbe","Mina", "Mano"]
adjetivos = ["paluda", "de boa",""]
verbos = ["usaaa","faz","tem"]
coisas = ["flex","jruby","flash","ruby EN rails","select WALL"]
sufixo = ["de boa", "aaahhh", "de boa aê", "fio", "mano", "aê", "e esse monitor é meu mano", "e terminei minha *ichue* valeu"]
frases = []
#Stupid code, fix it later...
prefixo.each { |pr|
pessoas.each { |p|
adjetivos.each { |a|
verbos.each { |v|
coisas.each { |c|
sufixo.each { |s|
frases << "#{pr} #{p} #{a} #{v} #{c} #{s}"
}
}
}
}
}
}
frases[rand(frases.size)]
end
def get_english_version
frases = "Damm! Yousa fine motha***!
Hey baby, jump in my low-rider, and let's rotate these tires?
Damm! B***, youse stupid fly. Let me pull up to that bumper and smack that monkey!
What up, dawg!
Hey, let me hold some hens. I'll hit you back on the first, my brother?
F*** you.
Drop them Nikes off yo a** 'fore I blast you motha***!
".split("\n")
frases[rand(frases.size)] + ", and i have a ichue"
end
module E::Controllers
class Index < R '/'
def get
@frase = say_something
@frase_ingles = get_english_version
render :index
end
end
end
module E::Views
def layout
html do
body do
self << yield
end
end
end
def index
center {
h1 @frase
h2 "English version: #{@frase_ingles}"
}
h4 "FAQ"
p "Como utilizar?"
p "Atualize seu browser, instale o SP3, vá em no painel de controle, desabilite suporte a sua impressora e clique __refresh__ no seu browser"
p "Esse software utiliza que tecnologia?"
p "Microsoft Silverlight"
p "O que seu coordernador acha disso?"
p "Coordenador: Atualize o Jira"
p "Como posso ajudar?"
p "Tem uma arma?"
p "A versão en ingês tá errada?"
p "http://humor.beecy.net/misc/ebonics/ "
p "http://letras.terra.com.br/50-cent/90618/"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment