gantt
title Nueva plantilla web
dateFormat YYYY-MM-DD
section Front-end
Brief :a1, 2023-05-16, 1d
Distribución equipos :after a1, 5d
Home :after a1, 1d
PDP :2d
PLP :2d
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
<!-- Ver en funcionamiento: https://playcode.io/2350477 --> | |
<!DOCTYPE html> | |
<html lang="es"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Efecto palabra tachada con reemplazo</title> | |
<style> | |
body { | |
font-family: sans-serif; | |
background: #f7f7f7; |
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
/* | |
Redondeo de números en "decenas" de acuerdo a ciertas configuraciones. | |
Documentación: https://developer.mozilla.org/es/docs/Web/JavaScript/Referencia/Objetos_globales/Math/floor | |
¿Por qué haríamos esto? | |
No recuerdo qué cliente pidió "redondear como en el ERP" y llevarlo a "números más bonitos" sea en múltiplo de 5 o 10; bueno, esta forma lo llevará a la decena anterior o siguiente (entera o decimal), con el método que elijamos en la función Math... Es para jugar un rato y ver qué querés obtener y listo; después el resto es magia en los TPL. | |
*/ | |
// Función encapsulada, leer la docu si no se entiende, de acuerdo al USO que le demos, se deberá limpiar o refactorizar | |
// Ver abajo un ejemplo de aplicación práctico |
Podemos ejecutar una búsqueda parametrizada por la extensión de archivo que necesitemos.
Para buscar archivos solo de extensión PHP (o la que necesites, jpg, gif, html, etc).
<?php
$files = glob('*.php');
print_r($files);
?>
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
{ | |
"normalPrice": 134.25, | |
"promotionalPrice": 128.94, | |
"priceList1": [10,100], | |
"priceList2": [13,500] | |
} |
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
{ | |
"order": { | |
"id": 2, | |
"id_address_delivery": "5", | |
"id_address_invoice": "5", | |
"id_cart": "2", | |
"id_currency": "1", | |
"id_lang": "1", | |
"id_customer": "2", | |
"id_carrier": "2", |
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
HTTP/1.1 200 OK | |
Content-Length: 6 | |
Content-Type: text/plain | |
Date: Sun, 12 Jun 2022 02:25:08 GMT | |
Response message: 200 OK |
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
-- | |
-- Table structure for table `wp_actionscheduler_groups` | |
CREATE TABLE `wp_actionscheduler_groups` ( | |
`group_id` bigint(20) UNSIGNED NOT NULL, | |
`slug` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL | |
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; | |
-- |
Usaremos la url https://apidestinatarios.andreani.com/api/envios/{{trackingNumber}}
Por ejemplo, con el código de seguimiento 9134669991
fetch("https://apidestinatarios.andreani.com/api/envios/9134669991", {
foo;
};
Y recibimos algo así como respuesta:
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
if (filter_var([email protected]", FILTER_VALIDATE_EMAIL)) { | |
echo '¡E-mail válido!'; | |
}else{ | |
echo 'Verifica el correo ingresado'; | |
} |
NewerOlder