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
// Función que valida una cédula de identidad ecuatoriana | |
// Devuelve true si la cédula es válida y false si no lo es | |
// Autor: Victor Bayas <[email protected]> | |
export default function validateDocument(document: string): boolean { | |
// Validamos que la cédula solo contenga 10 dígitos | |
if (document.length === 10) { | |
// Definimos el último dígito o tambien llamado dígito verificador | |
const lastDigit = parseInt(document[document.length - 1]); |
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
import { | |
ChevronLeftIcon, | |
ChevronRightIcon, | |
ChevronFirstIcon, | |
ChevronLastIcon, | |
} from 'lucide-react'; | |
import { Table } from '@tanstack/react-table'; | |
import { Button } from '@/components/ui/button'; | |
import { |
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
letras_numeros = { | |
'A': 1, | |
'B': 2, | |
'C': 3, | |
'D': 4, | |
'E': 5, | |
'F': 6, | |
'G': 7, | |
'H': 8, | |
'I': 9, |
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
version: '3' | |
services: | |
drupal: | |
image: drupal | |
restart: always | |
ports: | |
- 8088:80 | |
volumes: | |
- drupal-modules:/var/www/html/modules |
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
/** | |
* Auto-generated code below aims at helping you parse | |
* the standard input according to the problem statement. | |
**/ | |
var inputs = readline().split(' '); | |
const W = parseInt(inputs[0]); // width of the building. | |
const H = parseInt(inputs[1]); // height of the building. | |
const N = parseInt(readline()); // maximum number of turns before game over. | |
var inputs = readline().split(' '); |
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
Windows Registry Editor Version 5.00 | |
[HKEY_LOCAL_MACHINE\Software\Policies\Google\Chrome] | |
"ChromeCleanupEnabled"=dword:00000000 | |
"ChromeCleanupReportingEnabled"=dword:00000000 |
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
# Remove NVIDIA USB xHCI Host Controller devices, if present | |
ACTION=="add", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}=="0x0c0330", ATTR{remove}="1" | |
# Remove NVIDIA USB Type-C UCSI devices, if present | |
ACTION=="add", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}=="0x0c8000", ATTR{remove}="1" | |
# Remove NVIDIA Audio devices, if present | |
ACTION=="add", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}=="0x040300", ATTR{remove}="1" | |
# Remove NVIDIA VGA/3D controller |
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
//Pausa la consola pero funciona en cualquier plataforma | |
//Probado en Windows, Linux y https://www.onlinegdb.com/ | |
//prototipo | |
void pausarConsola() | |
//ejemplo del main | |
int main(){ | |
printf("Hola mundo!\n"); | |
pausarConsola(); | |
return 0; | |
} |