Skip to content

Instantly share code, notes, and snippets.

Clairton Luz clairtonluz

Block or report user

Report or block clairtonluz

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:8851555
{ “_id” : 0 , “name” : “Clairton Carneiro” , “teachers” : [ 0 , 1] }
View gist:8851569
{ “_id” : 0 , “name” : “Miranda”}
{ “_id” : 1 , “name” : “Amaury Brasil”}
View showForeignKeys.sql
use INFORMATION_SCHEMA;
select TABLE_NAME,COLUMN_NAME,CONSTRAINT_NAME,
REFERENCED_TABLE_NAME,REFERENCED_COLUMN_NAME from KEY_COLUMN_USAGE where
REFERENCED_TABLE_NAME = 'nomeDaTabelaPai';
View icedtea-web.sh
# Fedora
yum install icedtea-web
# Gentoo
emerge -av icedtea-web
View multi_inserts.sql
--Tabelas de exemplo
create table usuarios(
id int not null primary key auto_increment,
nome varchar(70),
fone varchar(10)
);
create table contatos(
id int not null primary key auto_increment,
View formatarData.xhtml
<h:outputText value="#{user.data}">
<f:convertDateTime pattern="dd/MM/yyyy"/>
</h:outputText>
View formatDouble.xhtml
<h:outputText value="#{produto.preco}">
<f:convertNumber pattern="#,###,##0.00" />
</h:outputText>
You can’t perform that action at this time.