Skip to content

Instantly share code, notes, and snippets.

View PedroAvila's full-sized avatar

Pedro Ávila PedroAvila

View GitHub Profile
@PedroAvila
PedroAvila / js
Last active October 25, 2025 23:41
Configuracion del archivo properties y del bucket de AWS
spring:
datasource:
url: jdbc:h2:mem:testdb;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE
driverClassName: org.h2.Driver
username: sa
password:
Te paras en el bucket que creates en la pestaña permisos al final creas este json con el nombre de tu bucket
{
"Version": "2012-10-17",
@PedroAvila
PedroAvila / XUnitAsserts.cs
Created November 9, 2024 22:21 — forked from jonesandy/XUnitAsserts.cs
A cheat sheet of Asserts for xUnit.net in C#
/*
STRINGS
*/
Assert.Equal(expectedString, actualString);
Assert.StartsWith(expectedString, stringToCheck);
Assert.EndsWith(expectedString, stringToCheck);
// Some can also take optional params
Assert.Equal(expectedString, actualString, ignoreCase: true);
Assert.StartsWith(expectedString, stringToCheck, StringComparison.OrdinalIgnoreCase);
@PedroAvila
PedroAvila / index.html
Created March 14, 2021 01:55
HTML: Código Básico
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Página del Repositorio</title>
</head>
@PedroAvila
PedroAvila / gist:b4336f45ed084b03e281b550140b871e
Created July 21, 2018 00:28
Mi DataGridView para trasladarme entre celdas de una misma fila y al llegar al final me cree la siguiente fila
public class RequestNewRowEventArgs : EventArgs
{
#region Properties
public bool RowAdded { get; set; }
public bool Handled { get; set; }
#endregion
}
public delegate void RequestNewRowEventHandler(object sender, RequestNewRowEventArgs e);