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
| // Estrutura base de uma API Express com padronização profissional | |
| // ------------------------ | |
| // 📁 src/server.js | |
| const app = require('./app'); | |
| require('dotenv').config(); | |
| const PORT = process.env.PORT || 3000; | |
| app.listen(PORT, () => { |
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
| // importa os módulos principais | |
| const express = require('express'); | |
| const dotenv = require('dotenv'); | |
| const mysql = require('mysql2/promise'); | |
| // carrega variáveis de ambiente do arquivo .env | |
| dotenv.config(); | |
| // cria a instância do express | |
| const app = express(); |
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 Cronometro15xSlow | |
| { | |
| 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
| using System.Runtime.InteropServices; | |
| namespace WinFormsApp1 | |
| { | |
| public partial class Form1 : Form | |
| { | |
| public const int LEFTDOWN = 0x00000002; | |
| public const int LEFTUP = 0x00000004; | |
| Random rand; |
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
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| using System.Text.RegularExpressions; | |
| namespace ArvoreBinariaArray | |
| { |
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 sww2i | |
| { | |
| partial class Form1 | |
| { | |
| /// <summary> | |
| /// Variável de designer necessária. | |
| /// </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
| public class ProdutosDB extends SQLiteOpenHelper{ | |
| private static final String DATABASE ="db_produtos"; | |
| private static final int VERSION = 1; | |
| public ProdutosDB (Context context){ | |
| super(context, DATABASE,null, VERSION); | |
| } | |
| @Override |
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
| using ClosedXML.Excel; | |
| private void teste() | |
| { | |
| //carregar caso a planilha ja existir | |
| //var wb = new XLWorkbook(@"C:\Users\caios\Desktop\teste.xlsx"); | |
| //var planilha1 = wb.Worksheet(1); | |
| //criando uma planilha | |
| var wb = new XLWorkbook(); |
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="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Document</title> | |
| </head> | |
| <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
| DEFINIÇÕES BÁSICA DE FORMULARIO | |
| Propriedades > Codigo > Politica de Tamanho de Form > Gerar Código de Redimensionamento, Gerar Centralizado | |
| Definir Layout > Layout Absoluto | |
| ADICIONANDO JAR BANCO DE DADOS | |
| Bibliotecas > Adicionar JAR > https://bitbucket.org/xerial/sqlite-jdbc/downloads/ |
NewerOlder