- Modificado (modified);
- Preparado (staged/index)
- Consolidado (comitted);
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
// Definições de pinos | |
int infraD = A0; // Sensor de refletância direito | |
int infraE = A1; // Sensor de refletância esquerdo | |
int ib1 = 11; // Pino do motor 1 (direção) | |
int ia1 = 10; // Pino do motor 1 (velocidade) | |
int ib2 = 5; // Pino do motor 2 (direção) | |
int ia2 = 6; // Pino do motor 2 (velocidade) | |
// Valores iniciais dos sensores para linha branca |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Recorte de Imagens</title> | |
<!-- Link para o arquivo CSS --> | |
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/cropper.min.css"> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css"> | |
</head> | |
<body> <div class="container mt-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
const fs = require('fs'); | |
const { PDFDocument, rgb } = require('pdf-lib'); | |
async function criarPDFComImagens(imagens, nomeArquivo) { | |
const pdfDoc = await PDFDocument.create(); | |
for (const imagem of imagens) { | |
const imagemBytes = fs.readFileSync(imagem); | |
const imagemObj = await pdfDoc.embedPng(imagemBytes); | |
const pagina = pdfDoc.addPage(); |
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 id, count(*) | |
from carga.preferencias | |
group by id |
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 moradores.nome, unidades.unidade, unidades.bloco, reserva_academia.* | |
from acesso.reserva_academia | |
join condominio.moradores on reserva_academia.autenticacao = moradores.autenticacao | |
join condominio.unidades on moradores.condominio = unidades.condominio and moradores.bloco = unidades.bloco and moradores.andar = unidades.andar and moradores.unidade = unidades.num | |
where data::date = current_date and reserva_academia.situacao = 'reservado' |
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
Registro.responsavel_estoque = this._listausuarios.find(x => x.id === Registro.responsavel_estoque).nome |
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
<style> | |
html { overflow-y: scroll } | |
</style> |
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
<IfModule mod_rewrite.c> | |
Options +FollowSymLinks -MultiViews | |
RewriteEngine On | |
RewriteBase / | |
RewriteCond %{THE_REQUEST} ^[A-Z]{3,}\s([^.]+)\.html [NC] | |
RewriteRule ^ %1 [R,L] | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteCond %{REQUEST_FILENAME}.html -f | |
RewriteRule ^(.*?)/?$ $1.html [L] | |
</IfModule> |
NewerOlder