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
POSTGRES_DB=keycloak_db | |
POSTGRES_USER=keycloak_db_user | |
POSTGRES_PASSWORD=keycloak_db_user_password | |
KEYCLOAK_ADMIN=admin | |
KEYCLOAK_ADMIN_PASSWORD=password | |
PGADMIN_DEFAULT_EMAIL=[email protected] | |
PGADMIN_DEFAULT_PASSWORD=SuperSecret |
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
function Unidades(num){ | |
switch(num) | |
{ | |
case 1: return "UN"; | |
case 2: return "DOS"; | |
case 3: return "TRES"; | |
case 4: return "CUATRO"; | |
case 5: return "CINCO"; | |
case 6: return "SEIS"; |
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
static List<string> ConvertPdfToImages(string documento) | |
{ | |
var images = Conversion.ToImages(documento, null, 150); | |
var result = new List<string>(); | |
foreach (var image in images) | |
{ | |
SKImage imagen = SKImage.FromPixels(image.PeekPixels()); | |
SKData encoded = imagen.Encode(); | |
Stream stream = encoded.AsStream(); |
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
/* | |
DUI = 00016297-5 | |
Posiciones -> 9 8 7 6 5 4 3 2 | |
DUI -> 0 0 0 1 6 2 9 7 | |
DV = 5 | |
sum: (9*0) + (8*0) + (7*0) + (6*1) + (5*6) + (4*2) + (3*9) + (2*7) = 85 | |
residuo: (85 % 10) = 5 | |
resta: 10 - residuo = 5 |
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
.overlay { | |
position: fixed; | |
top: 0; | |
bottom: 0; | |
left: 0; | |
right: 0; | |
background: rgba(0, 0, 0, 0.7); | |
transition: opacity 500ms; | |
visibility: hidden; | |
opacity: 0; |