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
window.addEventListener("scroll", function () { | |
let header = document.getElementById("headerDesktop"); | |
let menu = document.getElementById("menuFixed"); | |
if (header.getBoundingClientRect().top <= 0) { | |
menu.style.top = "0"; | |
} else { | |
menu.style.top = "-100px"; | |
} | |
}); |
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
#!/bin/bash | |
echo "Haciendo un bump de la versión..." | |
# Variables | |
DEVELOP_BRANCH="develop" | |
VERSION_BRANCH="version" | |
MAIN_BRANCH="main" | |
# Verificar el parámetro de versión |
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
<?php | |
/** | |
* CLASE PARA SUBIR UN ARCHIVO A LA CARPETA PASADA COMO PARÁMETRO | |
* | |
* Hay casos donde deberemos de estar subiendo archivos al servidor. Antes de subirlos, | |
* deberemos de estar validando el peso y el formato. Y una vez subido el archivo, deberemos | |
* de regresar el nombre del archivo, debidamente limpiado y con una marca de tiempo para | |
* evitar que haya duplicados y se sobreescriban. Será entonces cuando podamos almacenar | |
* en una base de datos el nombre del archivo. |
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
<!DOCTYPE html> | |
<html lang='es-MX'> | |
<head> | |
<meta charset='UTF-8'> | |
<meta content='width=device-width, initial-scale=1.0' name='viewport'> | |
<title>Importador de clientes a WooCommerce</title> | |
</head> | |
<body> | |
<h1>Importar clientes a WooCommerce</h1> | |
<p> |
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
/** | |
* 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 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
# 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 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
$fechaMasQuince = date('Y-m-d', strtotime($fechaCruda . ' + 15 days')); |
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
$(window).scroll(() => { | |
if ($(window).scrollTop() === ($(document).height() - $(window).height())) console.log('This is the end...') | |
}) |
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
header('Content-Type: application/json'); | |
echo json_encode([ | |
'estado' => $estado, | |
'correo' => $correo | |
]); |
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
h1 { | |
margin: 0; | |
padding: 0; | |
font-weight: 300; | |
color: whitesmoke; | |
font-size: 36px; | |
width: 100%; | |
white-space: nowrap; | |
overflow: hidden; | |
text-overflow:ellipsis; |
NewerOlder