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
<?php | |
#### | |
## Eliminar una imagen | |
#### | |
if(isset($_GET['eliminar'])){ | |
$archivo = $_GET['eliminar']; | |
$directorio = dirname(__FILE__); | |
if(unlink($directorio.'/'.$archivo)){ | |
header("Location: cargarImagen.php?accion=eliminado"); |
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> | |
<head> | |
<meta charset="utf-8"> | |
<title>Paginador con JSON</title> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css"> | |
</head> | |
<body> | |
<div class="container"> |
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> | |
<head> | |
<meta charset='UTF-8' /> | |
<title>Lista de Esados de la República Mexicana</title> | |
</head> | |
<body> | |
<h1>Lista de Estados de la República Mexicana</h1> | |
<label>Estado de la República</label> | |
<select name="estado"> |
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
<!DOCTYPE html> | |
<html lang="es"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Ordena JSON</title> | |
<meta name="description" content="Ordenar un JSON en Javascript"> | |
<meta name="author" content="Fernando Magrosoto V."> | |
<style> | |
body { | |
background-color: white; |
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
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
header('Content-Type: application/json'); | |
echo json_encode([ | |
'estado' => $estado, | |
'correo' => $correo | |
]); |
NewerOlder