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
const { src, dest, watch, parallel } = require('gulp'); | |
// css | |
const sass = require('gulp-sass')(require('sass')); | |
const plumber = require('gulp-plumber'); | |
// img | |
const cache = require('gulp-cache'); | |
const imagemin = require('gulp-imagemin'); | |
const webp = require('gulp-webp'); |
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
const { src, dest, watch, parallel } = require('gulp'); | |
// CSS | |
const sass = require('gulp-sass')(require('sass')); | |
const plumber = require('gulp-plumber'); | |
const autoprefixer = require('autoprefixer'); | |
const cssnano = require('cssnano'); | |
const postcss = require('gulp-postcss'); | |
const sourcemaps = require('gulp-sourcemaps'); |
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
public function olvide(OlvideRequest $request) | |
{ | |
$data = $request->validated(); | |
$user = User::where('email', $data['email'])->first(); | |
if($user) { | |
$user->recoveryToken = Str::random(30); | |
$user->save(); | |
Mail::send('emails.recovery', ['token' => $user->recoveryToken, 'nombre' => $user->name], function ($message) use ($user) { |
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
const productos = [ | |
{ | |
nombre: "Café Caramel con Chocolate", | |
precio: 59.9, | |
imagen: "cafe_01", | |
categoria_id: 1, | |
id: 1 | |
}, | |
{ | |
nombre: "Café Frio con Chocolate Grande", |
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 | |
namespace App; | |
class Propiedad | |
{ | |
//Base de datos | |
protected static $db; | |
/* protected static $columnasDB = [ |
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
Recetas cocteles | |
https://www.thecocktaildb.com/ | |
Recetas Comidas | |
https://www.themealdb.com/ | |
https://undraw.co/illustrations?fbclid=IwAR1L5IGumrG6MpeeSdZz7d6iV2wY9LKObizS9qdK21gvwJ5HnbnUAXl8juw |
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
// Variables | |
const btnEnviar = document.querySelector('#enviar'); | |
const btnReset = document.querySelector('#resetBtn'); | |
const formulario = document.querySelector('#enviar-mail'); | |
// Variables para campos | |
const email = document.querySelector('#email'); | |
const asunto = document.querySelector('#asunto'); | |
const mensaje = document.querySelector('#mensaje'); | |
const er = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/; |
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
// crea un nuevo registro | |
public function crear() { | |
// Sanitizar los datos | |
$atributos = $this->sanitizarAtributos(); | |
// Insertar en la base de datos | |
$query = " INSERT INTO " . static::$tabla . " ( "; | |
$query .= join(', ', array_keys($atributos)); | |
$query .= " ) VALUES ('"; | |
$query .= join("', '", array_values($atributos)); |
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
:root{ | |
--fuenteHeading: 'PT Sans', sans-serif; | |
--fuenteParrafos: 'Open Sans', sans-serif | |
--primario: #784d3c; | |
--blanco: #ffffff; | |
--negro: #000000; | |
} |
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="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Calculadora de Propinas y Consumos</title> | |
<link rel="stylesheet" href="css/bootstrap.min.css"> | |
<link rel="stylesheet" href="css/app.css"> |
NewerOlder