This file contains hidden or 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
dict = { | |
"CONTINENTE+cartão" => "CONTINENTE AND cartão", | |
"agencia OR gerente OR \"caixa eletronico\" OR ATM OR \"caixa rapido\" OR \"banco 24h\" OR terminal OR \"phone banking\" OR \"atendimento telefonico\" OR \"via telefone\" OR \"Correspondente bancario\" OR \"internet banking\" OR \"home banking\" OR mobile OR \"do celular\" OR \"via celular\" OR \"via iphone\" OR banking+celular OR banking+iphone OR SAC OR \"servico de atendimento ao consumidor\" OR supercash OR atendimento OR atendente OR atendendo OR banking OR atendentes OR \"redes sociais\" OR \"no twitter do\" OR \"o twitter do\" OR \"do twitter do\" OR \"o sacsantander\" OR \"o santander_br\" OR \"na fan page do\" OR \"da fan page do\" OR \"a fan page do\" OR \"no facebook\" OR \"do facebook\" OR chrome OR IOS OR MAC OR safari OR \"internet explorer\" " => "agencia OR gerente OR \"caixa eletronico\" OR ATM OR \"caixa rapido\" OR \"banco 24h\" OR terminal OR \"phone banking\" OR \"atendimento telefonico\" OR \"via telefone\" OR \"Correspondente |
This file contains hidden or 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
2.8811 3.8030 3.6851 -0.6650 -0.7844 5.5984 4.0082 11.3941 12.8090 6.8662 13.0082 14.9611 12.9753 16.8402 18.4373 15.4916 18.2839 17.7676 13.2586 18.4653 21.4630 21.2120 20.7231 27.3713 27.2953 28.4909 24.7253 27.9318 31.7255 33.3350 31.6846 28.0678 33.5385 28.7205 33.0673 36.6693 40.3373 40.1095 37.8455 41.5675 | |
-0.8295 5.7179 6.8797 6.6415 2.8888 4.5474 3.4669 9.8442 11.8284 13.1371 10.5828 11.9887 8.4888 16.9971 13.5039 12.0567 19.9965 19.6259 21.8249 16.8495 21.7323 22.6428 18.2281 22.0732 21.7529 27.1667 23.8338 30.9620 31.2658 27.9003 29.9790 32.9481 35.3437 34.0963 34.7474 33.2604 35.5642 39.1380 41.8441 41.2086 |
This file contains hidden or 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
# TESTADO NO UBUNTU SERVER 10.04 | |
# Dependencias para compilar Ruby e rodar Rails no Ubuntu | |
sudo apt-get install build-essential libssl-dev libreadline-dev zlib1g-dev sqlite3 libsqlite3-dev libxml2 libxml2-dev libxslt1.1 libxslt1-dev wget | |
# Recomendo baixar e compilar o codigo na pasta /opt | |
sudo mkdir -p /opt | |
cd /opt | |
# Baixando o codigo-fonte | |
sudo wget ftp://ftp.ruby-lang.org//pub/ruby/1.9/ruby-1.9.2-p180.tar.gz | |
# Descompactacao, compilacao e instalacao | |
sudo tar xvfz ruby-1.9.2-p180.tar.gz |
This file contains hidden or 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
def bubble_sort(list) | |
swapped = true | |
while swapped | |
swapped = false | |
(list.size - 1).times do |i| | |
if list[i] > list[i+1] | |
list[i], list[i+1] = list[i+1], list[i] | |
swapped = true | |
end | |
end |