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
| import { effect, Injectable, signal } from '@angular/core'; | |
| import { ClientMessage, ServerMessage } from '../types'; | |
| import { Subject } from 'rxjs'; | |
| import Cookies from 'js-cookie'; | |
| import { Client, LatLng } from '../../types'; | |
| type ConnectionStatus = 'offline' | 'connecting' | 'connected' | 'disconnected'; | |
| @Injectable({ |
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
| import { effect, Injectable, signal } from '@angular/core'; | |
| import { ClientMessage, ServerMessage } from '../types'; | |
| import { Subject } from 'rxjs'; | |
| type ConnectionState = 'connecting' | 'connected' | 'disconnected'; | |
| @Injectable({ | |
| providedIn: 'root', | |
| }) | |
| export class WebSocketConnectionService { |
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
| getRandomHexColor() { | |
| return ( | |
| '#' + | |
| Math.floor(Math.random() * 16777215) | |
| .toString(16) | |
| .padStart(6, '0') | |
| ); | |
| } |
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
| :host { | |
| display: block; | |
| padding: 24px 0; | |
| } | |
| .party-config, | |
| .party-config *, | |
| .party-config *::before, | |
| .party-config *::after { | |
| box-sizing: border-box; |
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
| // This is your Prisma schema file, | |
| // learn more about it in the docs: https://pris.ly/d/prisma-schema | |
| // Looking for ways to speed up your queries, or scale easily with your serverless or edge functions? | |
| // Try Prisma Accelerate: https://pris.ly/cli/accelerate-init | |
| generator client { | |
| provider = "prisma-client" | |
| output = "../src/generated/prisma" | |
| } |
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
| :root { | |
| font-family: system-ui, Avenir, Helvetica, Arial, sans-serif; | |
| line-height: 1.5; | |
| font-weight: 400; | |
| color-scheme: dark; | |
| color: rgba(255, 255, 255, 0.87); | |
| background-color: #242424; | |
| font-synthesis: none; |
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
| import type { PoliticalParty } from '../types'; | |
| import { generateUuid } from '../utils/generate-uuid'; | |
| const defaultParties = [ | |
| { | |
| name: 'Partido Rojo', | |
| color: 'rgba(220, 53, 69, 0.2)', | |
| borderColor: 'rgb(220, 53, 69)', | |
| votes: 42, | |
| }, |
Este Gist presenta una implementaci贸n base de las capas de Repositorio y Servicio para los m贸dulos de Educaci贸n y Experiencia en una aplicaci贸n Spring Boot, utilizando JdbcTemplate. Este c贸digo es un punto de partida para comprender c贸mo interactuar con una base de datos relacional y c贸mo estructurar las capas de una aplicaci贸n t铆pica.
El c贸digo est谩 organizado en interfaces y sus implementaciones para la capa de persistencia (Repositories) y la capa de l贸gica de negocio (Services). Puedes encontrar cada componente en su archivo .java correspondiente dentro de este Gist.
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
| import butterChicken from '../assets/images/butter-chicken-4.jpg'; | |
| import palakPaneer from '../assets/images/Saag-Paneer-1.jpg'; | |
| import biryani from '../assets/images/hyderabadibiryani.jpg'; | |
| import masalaDosa from '../assets/images/masala-dosa.jpg'; | |
| import choleBhature from '../assets/images/chole-bhature.jpg'; | |
| import rajmaChawal from '../assets/images/rajma-chawal-1.jpg'; | |
| import paneerTikka from '../assets/images/paneer-tika.webp'; | |
| import gulabJamun from '../assets/images/gulab-jamun.webp'; | |
| import pooriSabji from '../assets/images/poori-sabji.webp'; | |
| import roganJosh from '../assets/images/rogan-josh.jpg'; |
NewerOlder