Skip to content

Instantly share code, notes, and snippets.

View KeyCuevasMelgarejo's full-sized avatar

Key Cuevas Melgarejo KeyCuevasMelgarejo

View GitHub Profile
KeyCuevasMelgarejo / index.html
Created April 6, 2024 05:56
Sh's Piano 🎹
<!DOCTYPE html>
<html lang="en">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
<script src="script.js" defer></script>
<link rel="shortcut icon" href="logo.png" type="image/x-icon">
KeyCuevasMelgarejo /
Last active May 18, 2022 15:50
Spring | Thymeaf | th:each ~ th:if

Listar items segun su disponibilidad | Ejemplo

<!DOCTYPE html>
<html xmlns:th="" xmlns:sec="">
<head th:replace = "layout/plantilla :: head"></head>

<body class="">
    <div class="wrapper">
        <!--  Sidebar -->
KeyCuevasMelgarejo /
Last active November 29, 2020 04:34
Spring | Repository | JPA@query

Repository JPA @query | Ejemplo

	@Query(value = "SELECT Max(id_horario) FROM Horario")
	Integer findByHorario_IdHorario();
	@Query(value = "SELECT h FROM Horario h where h.estado_registro='PENDIENTE'")
	List<Horario> findByEstado();
	@Query(value = "SELECT h FROM Horario h where h.estado_registro='COMPLETADO'")