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
import talos | |
import tensorflow.keras as keras | |
talos.models.lr_normalizer(1000, keras.optimizers.Adam) |
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
// passo 3: pedir demais: 5 itens | |
recommendations = recommender.recommend(2, 5); | |
for (RecommendedItem recommendation : recommendations) { | |
System.out.println(recommendation); | |
} | |
// passo 4: nao ter o usuario, e ai? | |
// passo 5: adicionar o usuario... | |
// passo 6: nao recomendou nada... pegar os mais antigos | |
recommendations = recommender.recommend(6, 5); |
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
{ | |
'a' : 'b' | |
} |
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
# aqui estao as definicoes de funcoes | |
def da_boas_vindas | |
puts "Bem-vindo ao jogo de adivinhação" | |
puts "Qual é o seu nome?" | |
nome = gets | |
puts "\n\n\n\n\n\n" | |
puts "Começaremos o jogo para você, #{nome}" | |
end | |
def sorteia_numero_secreto |
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
#define TAMANHO_MAXIMO_DO_SEGREDO 4 | |
#define REPETICOES_ESTADO_FINAL 3 | |
#define TEMPO_LUZ 1000 | |
#define TEMPO_PAUSA 500 | |
#define ledVerde 2 | |
#define ledAmarelo 3 | |
#define ledVermelho 4 | |
#define ledBranco 5 |
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
function soma(a,b) { | |
return a + b; | |
} | |
function maior(a,b) { | |
if(a > b) return a; | |
return b; | |
} | |
function somaPositivos(a) { |
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
- double | |
- em horas | |
newInterval = 48 | |
initialStepSmall = 1minute | |
initialStepBig = 10minutes | |
easyBonus = 1.3 |
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
class ClientCss { | |
public static String client_portfolio = "portfolio"; | |
public static String client_card = "card"; | |
public static String client_photo = "photo"; | |
} |
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
package br.com.caelum.mvc; | |
public class ClientsController { | |
// reflection based conversion is NOT safe | |
public void save1(Client client) { | |
} | |
// primitives are safe |
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
wget http://dl.bintray.com/caelum/VRaptor4/vraptor-blank-project--4.1.0-RC2.zip | |
unzip vraptor-blank-project--4.1.0-RC2.zip | |
cd vraptor-blank-project | |
mvn tomcat:run | |
Tomcat 6 escolhido: | |
> INFO: Starting Servlet Engine: Apache Tomcat/6.0.29 | |
curl -v http://localhost:8080 | |
* Adding handle: conn: 0x7fdef4003000 |