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
/** | |
* ELIMINAR DE MANERA RECURSIVA A LOS HIJOS DEL ELEMENTO PASADO COMO PARÁMETRO | |
* | |
* @author Fernando Magrosoto V. | |
* @since abril, 2024 | |
*/ | |
function borrarHijosRecursivamente(elemento) { | |
while (elemento.firstChild) { | |
elemento.removeChild(elemento.firstChild); | |
} |
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
# v1.0.0 Fernando Magrosoto V. | |
version: "3.7" | |
services: | |
servidor-mysql: | |
image: mysql:8.0 | |
environment: | |
MYSQL_ROOT_PASSWORD: acceso2023 | |
ports: | |
- "3306:3306" |
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
$fechaMasQuince = date('Y-m-d', strtotime($fechaCruda . ' + 15 days')); |
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
$(window).scroll(() => { | |
if ($(window).scrollTop() === ($(document).height() - $(window).height())) console.log('This is the end...') | |
}) |
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
header('Content-Type: application/json'); | |
echo json_encode([ | |
'estado' => $estado, | |
'correo' => $correo | |
]); |
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
h1 { | |
margin: 0; | |
padding: 0; | |
font-weight: 300; | |
color: whitesmoke; | |
font-size: 36px; | |
width: 100%; | |
white-space: nowrap; | |
overflow: hidden; | |
text-overflow:ellipsis; |
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
# Este archivo debe de ir en /etc/apache2/vhosts | |
# Y se usa para cada proyecto. | |
# El URL del DocumentRoot apunta hacia la carpeta donde está el repo | |
# y no precisamente donde está el htdocs de Apache (/Library/WebServer/Documents). | |
# | |
# Recuerda agregar el dominio a la tabla de hosts (/etc/hosts) | |
<VirtualHost *:80> | |
DocumentRoot "/Users/fmagrosoto/Documents/Repositorios/prueba" | |
ServerName prueba.local |
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
alias ll='ls -al' | |
alias repos='clear && cd ~/Documents/dIGITAE/Repositorios && ll && say Listos pachar código' | |
export CLICOLOR=1 | |
export LSCOLORS=ExFxBxDxCxegedabagacad | |
alias puertos='sudo lsof -PiTCP -sTCP:LISTEN' | |
alias compara='git remote show origin' | |
alias c='clear' | |
alias cl='clear && ll' | |
alias st='git status' | |
alias iplocal='ifconfig | grep "inet " | grep -v 127.0.0.1 | cut -d\ -f2' |
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 lang=""> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="description" content=""> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title></title> | |
<!-- Disable tap highlight on IE --> |
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
// Declarar una variable global para reusarlo a lo largo del script. | |
// Esta variable contendrá el objeto XMLHttpRequest. | |
var httpRequest; | |
/** | |
* FUNCIÓN PARA ACTIVAR AJAX Y HACER LA LLAMADA ASÍNCRONA. | |
* @uses Esta función se dispara al cargarse todos los elementos de la página | |
* @return Void | |
*/ | |
function llamadaAjax() { |
NewerOlder