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/ruby | |
# Usage: ruby juros.rb aplicacao_mensal juros meses | |
aplicacao = ARGV[0].to_f | |
juros = ARGV[1].to_f | |
meses = ARGV[2].to_i | |
def calcula_juros(aplicacao, juros, meses) | |
@total = 0.0 | |
for i in 1..meses do |
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
= Christian Neukirchen's Ruby Style Guide | |
[ http://github.com/chneukirchen/styleguide/blob/master/RUBY-STYLE ] | |
You may not like all rules presented here, but they work very well for | |
me and have helped producing high quality code. Everyone is free to | |
code however they want, write and follow their own style guides, but | |
when you contribute to my code, please follow these rules: | |
== Formatting: |
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
E se os Sistemas Operacionais fossem mulheres? | |
Linux é uma mulata gostosona mas meio feia de rosto com quem voce tem | |
que conversar horas no boteco sobre ecologia e o embargo a Cuba antes | |
de levar pra cama. | |
Mac é uma patricinha, linda mas cheia de vontades, só sai com quem tem | |
carro importado. Todo mundo admira mas poucos tem acesso. |
NewerOlder