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
<?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 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 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' |
NewerOlder