This file contains 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 Grid{ | |
ArrayList<ArrayList<Rhombus>> matrix; | |
int rows, cols; | |
float altura, largura; | |
Grid(ArrayList<ArrayList<Rhombus>> matrix) | |
{ | |
this.matrix = matrix; | |
this.altura = matrix.get(0).get(0).lado * 1.5 ; |
This file contains 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
int tamanho = 30; | |
int deslocamento = tamanho; | |
Triangulo[][] triangulo; | |
color[] cores = new color[3]; | |
boolean invert = true; | |
int count = 0; | |
void setup() { | |
size(600, 600, P2D); | |
triangulo = new Triangulo[100][100]; |
This file contains 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
delete item_distribuicao_televenda | |
where clt_codigo in (select clt_codigo from cliente_televenda | |
where left(clt_cof, 3) = '000') |
This file contains 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
var reverse = require('ascii-art-reverse') | |
// makes a visible HTML console | |
require('console-log').show(true) | |
var coolbear = | |
" ('-^-/') \n" + | |
" `o__o' ] \n" + | |
" (_Y_) _/ \n" + | |
" _..`--'-.`, \n" + |
This file contains 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
-- Explicação incompleta | |
/*Para esta trigger foi criado dois tipo de variável que comportam tabelas | |
- tp_tabela_af | |
- tp_email_agentes | |
Esses novos tipos permitem o uso de váriaves que comportam colunas e linhas. Portanto posso usá-las | |
em function e procedures como parametros ou ter uma tabela como retorno de uma função. | |
Na trigger, uma função (dbo.fn_informacoes_af) gera uma tabela com informações do contrato (AF) |
This file contains 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 beads.*; | |
AudioContext ac; | |
WavePlayer wp; | |
Gain g; | |
Glide gainGlide; | |
Glide frequencyGlide; | |
void setup() | |
{ |
This file contains 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
/*O ideal seria separar a classe Line em um arquivo diferente para ficar mais legivel. Mas processing é sobre bagunça. o/ | |
Pressionando o botao esquerdo do monuse e arrastando para baixo cria linhas (max 30 linnhas/harcoded). | |
Arrastando para cima apaga a linha ate ficar a tela em branco. */ | |
class Line{ | |
private float y, len; | |
Line(float x, float y, int len){ | |
this.y = y; |
This file contains 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
--Funções COUNT (CONTAR), SUM (SOMA), AVG (MEDIA), MIN (MINIMO), MAX (MAXIMO) | |
select COUNT(*), SUM(af_valor_af), AVG(af_valor_af), MIN(af_valor_af), MAX(Af_valor_af) | |
from af | |
--Agregação | |
select itb_qtde_parcelas, prd_codigo, SUM(Af_valor_af), COUNT(*) | |
from af | |
group by itb_qtde_parcelas, prd_codigo | |
This file contains 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
select * from sys.tables where create_date >= '2013-11-13' and name like '%consignados%' | |
select * from temp_inss_concedidos_agosto2013 | |
select * | |
into temp_inss_concedidos | |
from temp_inss_concedidos_jan | |
union | |
select *, NULL |
This file contains 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
USE dbName | |
GO | |
SELECT * from sys.tables | |
GO |