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
procedure TFrmLogin.BTN_EnterClick(Sender: TObject); | |
var verif: boolean; | |
begin | |
//DM é o nome do form e ADOQueryUs é o nome da query(busca) responsável pela tabela users | |
DM.ADOQueryUs.close; | |
DM.ADOQueryUs.SQL.Clear; | |
// os comandos a cima fecham e limpam a query | |
DM.ADOQueryUs.SQL.add('Select * from "users" where "id" = :id'); |
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
//Longa duração | |
Toast.makeText(getApplicationContext(), “Não deixe nenhum campo em branco.”, Toast.LENGTH_LONG).show(); | |
//Curta duração | |
Toast.makeText(getApplicationContext(), “Não deixe nenhum campo em branco.”, Toast.LENGTH_LONG).show(); |
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
<!-- Para mudar o tamanho da fonte dos componenetes visuais do android studio, precisamos criar uma dimen | |
e depois vincular esta dimen criada ao componenete | |
Exemplo: | |
Arquivo dimens.xml: | |
--> | |
<resources> | |
<!-- Default screen margins, per the Android Design guidelines. --> | |
<dimen name="activity_horizontal_margin">16dp</dimen> <!-- Dimen padrão do android Studio --> | |
<dimen name="activity_vertical_margin">16dp</dimen> <!-- Dimen padrão do android Studio --> |
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
Fonte: http://gohorseprocess.wordpress.com | |
1- Pensou, não é XGH. | |
XGH não pensa, faz a primeira coisa que vem à mente. Não existe | |
segunda opção, a única opção é a mais rápida. | |
2- Existem 3 formas de se resolver um problema, a correta, a errada e | |
a XGH, que é igual à errada, só que mais rápida. |
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 exemplobanco; | |
import java.sql.Connection; | |
import java.sql.DriverManager; | |
import java.sql.SQLException; | |
import java.sql.PreparedStatement; | |
/* | |
* To change this license header, choose License Headers in Project Properties. |
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
-- Seleciona o Alimento fazendo o join das tabelas com relacionamento | |
SELECT | |
a.*, | |
ga.nome AS grupo_alimentar_nome, | |
ta.nome AS tabela_alimentar_nome | |
FROM | |
alimento AS a | |
JOIN grupo_alimentar AS ga ON a.grupo_alimentar_id = ga.id | |
JOIN tabela_alimentar AS ta ON a.tabela_alimentar_id = ta.id | |
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
<html> | |
<head> | |
<title>Teste ocultismo</title> | |
</head> | |
<body> | |
Masculino <input type="radio" name="sexo" id="masculino" checked> | |
Feminino <input type="radio" name="sexo" id="feminino"><br> | |
<div id="divmenstruacao" style="display:none"> | |
Menstruacao <input type="text" name="menstruacao" id="menstruacao" > |
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 socket | |
import json | |
import sys | |
HOST = '0.0.0.0' | |
PORT = 9201 | |
try: | |
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
except socket.error, msg: |
OlderNewer