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
--- Alpine.js --- | |
<script defer src="https://cdn.jsdelivr.net/npm/[email protected]/dist/cdn.min.js"></script> | |
--- Font Awesome --- | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/js/all.min.js" defer></script> | |
--- Sub options Menu | |
<a href="{{ route('categories.create') }}" class="block py-2 px-3 rounded hover:bg-gray-600">📂 Data Management</a> | |
<a href="{{ route('categories.report') }}" class="block py-2 px-3 rounded hover:bg-gray-600">📊 Reports</a> |
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
Web Development | |
I create modern and responsive web applications using the latest technologies. | |
UI/UX Design | |
I design intuitive and attractive interfaces to enhance the user experience. | |
Consulting |
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
console.log(a); // What value does 'a' have here? | |
var a = 5; | |
console.log(b); // What value does 'b' have here? | |
let b = 10; | |
function example() { | |
console.log(c); // What value does 'c' have here? | |
var c = 15; |
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="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <!-- displays site properly based on user's device --> | |
<link rel="icon" type="image/png" sizes="32x32" href="./assets/images/favicon-32x32.png"> | |
<title>Frontend Mentor | FAQ accordion</title> |
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
<script> | |
function confirmDelete(categoryId) { | |
Swal.fire({ | |
title: '¿Are you sure to delete?', | |
text: "¡Confirm delete, please!", | |
icon: 'warning', | |
showCancelButton: true, | |
confirmButtonColor: '#3085d6', | |
cancelButtonColor: '#d33', | |
confirmButtonText: 'Yes', |
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
// Additional Products for Hardware | |
{ name: 'Screwdriver Set', quantity: 10, price: 25.99, cost: 20.99, departmentId: 1, supplierId: 4 }, | |
{ name: 'Drill Machine', quantity: 5, price: 79.99, cost: 60.99, departmentId: 1, supplierId: 7 }, | |
{ name: 'Wrench Set', quantity: 12, price: 35.99, cost: 28.99, departmentId: 1, supplierId: 4 }, |
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
// Create suppliers | |
await prisma.supplier.createMany({ | |
data: [ | |
{ name: 'Paints Supplier', contact: '[email protected]' }, | |
{ name: 'Tools Supplier', contact: '[email protected]' }, | |
{ name: 'Global Electronics Inc.', contact: '[email protected]', address:'123 Tech Park, Silicon Valley, CA', phone: '+1-555-123-4567', country: 'United States', | |
}, | |
{ name: 'Innovative Supplies Ltd.', contact: '[email protected]', address: '456 Industrial Ave, Toronto, ON', phone: '+1-416-555-7890', country: 'Canada', | |
}, | |
{ name: 'Tech Solutions GmbH', contact: '[email protected]', address: '789 Innovation Strasse, Berlin', phone: '+49-30-123-4567', country: 'Germany', |
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
# CodigoFacilito Challenge 5: Registro de usuarios usando diccionarios, opciones de menú y funciones | |
users = {} | |
def new_user(user_id): | |
print("Registro del usuario:", user_id) | |
# Solicita y valida el nombre | |
while True: | |
first_name = input('Ingresa tu nombre: ') |
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
# CodigoFacilito Challenge 4: Registro de usuarios con ID usando diccionarios y opciones de menú | |
users = {} | |
while True: | |
print("\nMenú:") | |
print("A.- Registrar nuevos usuarios") | |
print("B.- Listar usuarios") | |
print("C.- Ver información de un usuario") | |
print("D.- Editar información de un usuario") |
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
# CodigoFacilito Challenge 3: Registro de usuarios con ID usando listas | |
num_users = int(input('¿Cuántos nuevos usuarios se pretenden registrar? ')) | |
user_ids = [] | |
# Itera sobre el número de usuarios a registrar | |
for i in range(0, num_users): | |
print("Registro del usuario:", i+1) | |
# Solicita y valida el nombre |
NewerOlder