View index.html
<header> | |
body { | |
margin: 0; | |
background-color: #121212; | |
font-family: sans-serif; | |
} | |
.header { | |
background-color: #333; | |
text-align: center; |
View exercicio5.cs
private void button1_Click(object sender, EventArgs e) | |
{ | |
var valor = int.Parse(txtNumero.Text); | |
bool verifica = valor > 10; | |
MessageBox.Show("numero digitado e maior ? " + verifica); | |
//ou | |
string mensagem = valor > 10 ? "SIM" : "NÃO"; | |
MessageBox.Show("numero digitado e maior ? " + mensagem); |
View js-keys-objeto.js
var meuObjeto = { | |
b: 10, | |
c: 20, | |
d: 30 | |
}; | |
//Utilizando Object.keys | |
var x = Object.keys(meuObjeto); | |
for(var i = 0; i < x.length; i++) { |
View VerificaClienteNovo.cs
public class AprovarComprasDoCliente | |
{ | |
public bool VerificarSeClientePodeComprar(int idCliente) | |
{ | |
var cliente = _repositorio.BuscarCliente(idCliente); | |
//algumas verificações aqui... | |
//Agora verificamos o "Ativo" primeiro :) | |
if(cliente.Ativo || VerificaUltimaCompra(cliente)) |
View VerificaClienteAntigo.cs
public class AprovarComprasDoCliente | |
{ | |
public bool VerificarSeClientePodeComprar(int idCliente) | |
{ | |
var cliente = _repositorio.BuscarCliente(idCliente); | |
//algumas verificações aqui... | |
if(VerificaUltimaCompra(cliente) || cliente.Ativo) | |
{ |
View Cliente.cs
public class Cliente | |
{ | |
public int Id { get; set } | |
public bool Ativo { get; set; } | |
//Outros atributos... | |
} |
View main.dart
import 'package:flutter/material.dart'; | |
void main(){ | |
runApp(MaterialApp( | |
home: Home() | |
)); | |
} | |
class Home extends StatefulWidget { | |
@override |
View IndiceEmailInclude.sql
CREATE INDEX IDX_ClienteEmail | |
ON Cliente(Email) | |
INCLUDE (Nome, Sobrenome) | |
WITH (DROP_EXISTING = ON) |
View IndiceEmail.sql
CREATE INDEX IDX_ClienteEmail | |
ON Cliente(Email) |
View SelectCliente.sql
SELECT Id, | |
Nome, | |
Sobrenome, | |
FROM Cliente | |
WHERE Email = 'vinicius.mussak@outlook.com' |
NewerOlder