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
| /*Legendas | |
| qtd = Quantidade | |
| qtdv = Quantidade total onde o tipo de ordem é 0 | |
| tqtd = quantidade total de ativos na carteira | |
| tqtdv = quantidade total onde o tipo ordem é 0(vendidos) | |
| pm = preço médio (qtd1 x preco) + (qtd2 x preco) / (qtd1 + qtd2) | |
| pm (recalculado) = preço médio (new.qtd x preco) + (tqtd x pm) / (tqtd + new.qtd) | |
| pmv = preco médio vendidos (qtdv x prevo) + (qtdv x preco) / tqtdv | |
| lucro = lucro apos cada venda (tqtdv x pmv) - (tqtdv x pm) | |
| */ |
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
| CREATE TABLE IF NOT EXISTS operacao ( | |
| id INTEGER PRIMARY KEY AUTOINCREMENT, | |
| cod_acao TEXT NOT NULL, | |
| qtd INTEGER NOT NULL, | |
| preco INTEGER NOT NULL, | |
| taxas INTEGER, | |
| data TEXT NOT NULL, | |
| tipo_ordem BIT NOT NULL --1 COMPRA - 0 VENDA | |
| ) |
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
| #foo, #baz, #bar { | |
| position: absolute; | |
| z-index: 999; | |
| width: 200px; | |
| height: 200px; | |
| background-color: #fc0; | |
| } | |
| .isMoving { | |
| z-index: 1001 !important; |
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
| <!DOCTYPE html> | |
| <html lang="pt-br"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
| <title>Document</title> | |
| </head> | |
| <style> | |
| body{ |
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
| namespace AutoKey | |
| { | |
| partial class Form1 | |
| { | |
| /// <summary> | |
| /// Required designer variable. | |
| /// </summary> | |
| private System.ComponentModel.IContainer components = null; | |
| /// <summary> |
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
| <!DOCTYPE html> | |
| <html lang="pt-br"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <link rel="stylesheet" type="text/css" href="" /> | |
| <title>TAGS BASICAS HTML5</title> | |
| </head> | |
| <body bgcolor="white"> <!--NOT SUPORTE HTML5--> | |
| <div style="background-color:#E8E8E8;border-style: dotted solid dashed double;"> <!--SUPORTED HTML5--> | |
| <style> |
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
| ===============Regras e Dicas Básicas SQL Lite.=================== | |
| 1- O auto-incremento só é possivel para do tipo de dado INTEGER (não int) | |
| 2 - Para ultilizar o autoincrement, nao colocar o campo dele nas inserçoes ou se colocar deixar NULL no valor | |
| 3 - É possivel colocar definir valores | |
| 2- O SQLLite permite armazenar qualquer valor em qualquer tipo de campos. |
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
| #include <stdio.h> | |
| #include <windows.h> //Sleep() | |
| #include <stdlib.h> | |
| #include <stdbool.h> //nessesário para usar o tipo logico bool | |
| #include <locale.h> //necessário para usar setlocale | |
| #include <conio.h> //necessário para usar a funcao getch() | |
| #include <math.h> |
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
| * { | |
| margin:0px; | |
| padding:0px; | |
| -webkit-box-sizing: border-box; | |
| -moz-box-sizing: border-box; | |
| box-sizing: border-box; | |
| } | |
| body { | |
| background:#000000; |
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 conexaobd; | |
| import javax.swing.JComboBox; | |
| import javax.swing.JOptionPane; | |
| import javax.swing.JTextField; | |
| /** | |
| * | |
| * @author CAIO | |
| */ |