Skip to content

Instantly share code, notes, and snippets.

View AxelDesarrolloWeb's full-sized avatar

Axel Benjamín Alvarez Alcaraz AxelDesarrolloWeb

View GitHub Profile
@dasdo
dasdo / GIT.md
Last active February 25, 2026 18:50
Lista de Comandos en GIT

Configuración Básica

Configurar Nombre que salen en los commits

	git config --global user.name "dasdo"

Configurar Email

	git config --global user.email dasdo1@gmail.com
@codigoconjuan
codigoconjuan / db.sql
Last active November 19, 2025 00:00
Introducción a Bases de Datos
INSERT INTO reservaciones (nombre, apellido, hora, fecha, servicios) VALUES
('Juan', 'De la torre', '10:30:00', '2021-06-28', 'Corte de Cabello Adulto, Corte de Barba' ),
('Antonio', 'Hernandez', '14:00:00', '2021-07-30', 'Corte de Cabello Niño'),
('Pedro', 'Juarez', '20:00:00', '2021-06-25', 'Corte de Cabello Adulto'),
('Mireya', 'Perez', '19:00:00', '2021-06-25', 'Peinado Mujer'),
('Jose', 'Castillo', '14:00:00', '2021-07-30', 'Peinado Hombre'),
('Maria', 'Diaz', '14:30:00', '2021-06-25', 'Tinte'),
('Clara', 'Duran', '10:00:00', '2021-07-01', 'Uñas, Tinte, Corte de Cabello Mujer'),
('Miriam', 'Ibañez', '09:00:00', '2021-07-01', 'Tinte'),
@codigoconjuan
codigoconjuan / footer.php
Created August 16, 2022 21:43
Gist Para Menú de Redes Sociales
@codigoconjuan
codigoconjuan / usuarios.sql
Last active November 27, 2025 16:36
Tabla de Usuarios de DevWebCamp
CREATE TABLE `usuarios` (
`id` int NOT NULL AUTO_INCREMENT,
`nombre` varchar(40) DEFAULT NULL,
`apellido` varchar(40) DEFAULT NULL,
`email` varchar(40) DEFAULT NULL,
`password` varchar(60) DEFAULT NULL,
`confirmado` tinyint(1) DEFAULT NULL,
`token` varchar(13) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL,
`admin` tinyint(1) DEFAULT NULL,
PRIMARY KEY (`id`)
@codigoconjuan
codigoconjuan / admin-layout.php
Created August 17, 2022 17:15
Admin Layout DevWebCamp
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>DevWebCamp - <?php echo $titulo; ?></title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;700;900&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.2/css/all.min.css" integrity="sha512-1sCRPdkRXhBV2PBLUdRb4tMg1w2YPf37qatUFeS7zlBy7jJI8Lf4VHwWfZZfpXtYSLy85pkm9GaYVYMfw5BC1A==" crossorigin="anonymous" referrerpolicy="no-referrer" />
@codigoconjuan
codigoconjuan / ponentes.sql
Created August 18, 2022 22:21
Base de Datos Ponentes - DevWebCamp
CREATE TABLE `ponentes` (
`id` int NOT NULL AUTO_INCREMENT,
`nombre` varchar(40) DEFAULT NULL,
`apellido` varchar(40) DEFAULT NULL,
`ciudad` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL,
`pais` varchar(20) DEFAULT NULL,
`imagen` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL,
`tags` varchar(120) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL,
`redes` text,
PRIMARY KEY (`id`)
@codigoconjuan
codigoconjuan / Ponente.php
Created August 18, 2022 22:53
Gist Validación Ponentes
public function validar() {
if(!$this->nombre) {
self::$alertas['error'][] = 'El Nombre es Obligatorio';
}
if(!$this->apellido) {
self::$alertas['error'][] = 'El Apellido es Obligatorio';
}
if(!$this->ciudad) {
self::$alertas['error'][] = 'El Campo Ciudad es Obligatorio';
}
@codigoconjuan
codigoconjuan / ponentes.sql
Last active August 29, 2025 15:46
Datos de Ponentes
INSERT INTO `ponentes` (`id`, `nombre`, `apellido`, `ciudad`, `pais`, `imagen`, `tags`, `redes`) VALUES
(1, ' Julian', 'Muñoz', 'Madrid', 'España', '6764a74ccf2b4b5b74e333016c13388a', 'React,PHP,Laravel', '{\"facebook\":\"https://facebook.com/C%C3%B3digo-Con-Juan-103341632130628\",\"twitter\":\"https://twitter.com/codigoconjuan\",\"youtube\":\"\",\"instagram\":\"https://instagram.com/codigoconjuan\",\"tiktok\":\"\",\"github\":\"https://github.com/codigoconjuan\"}'),
(2, ' Israel', 'González', 'CDMX', 'México', '6497c66bcc464e26871c046dd5bb86c8', 'Vue,Node.js,MongoDB', '{\"facebook\":\"\",\"twitter\":\"\",\"youtube\":\"https://youtube.com/codigoconjuan\",\"instagram\":\"https://instagram.com/codigoconjuan\",\"tiktok\":\"https://tiktok.com/@codigoconjuan\",\"github\":\"https://github.com/codigoconjuan\"}'),
(3, ' Isabella', 'Tassis', 'Buenos Aires', 'Argentina', '55c7866df31370ec3299eed6eb63daa1', 'UX / UI,HTML,CSS,TailwindCSS', '{\"facebook\":\"https://facebook.com/C%C3%B3digo-Con-Juan-103341632130628\",\"twit
@codigoconjuan
codigoconjuan / categorias.sql
Created August 24, 2022 16:36
Estructura de la Base de Datos de Categorias
CREATE TABLE `categorias` (
`id` int NOT NULL AUTO_INCREMENT,
`nombre` varchar(45) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;
@codigoconjuan
codigoconjuan / eventos.sql
Last active August 30, 2025 22:00
Estructura de la base de datos para Eventos
CREATE TABLE `eventos` (
`id` int NOT NULL AUTO_INCREMENT,
`nombre` varchar(120) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL,
`descripcion` text,
`disponibles` int DEFAULT NULL,
`categoria_id` int NOT NULL,
`dia_id` int NOT NULL,
`hora_id` int NOT NULL,
`ponente_id` int NOT NULL,
PRIMARY KEY (`id`),