Skip to content

Instantly share code, notes, and snippets.

@kenresoft
kenresoft / riff_switch.dart
Created May 30, 2023 22:05
Comparing Dart 2 and Dart 3 Switch statements.
final RiffSwitchType type;
RiffSwitchType get _type => type;
@override
Widget build(BuildContext context) {
// Dart 2
/*switch (_type) {
case RiffSwitchType.simple:
return _buildSimpleSwitch();
@Klerith
Klerith / app.html
Created November 22, 2022 19:07
Lista de tareas - Vanilla JavaScript
<section class="todoapp">
<header class="header">
<h1>Tareas</h1>
<input id="new-todo-input" class="new-todo" placeholder="¿Qué necesita ser hecho?" autofocus>
</header>
<!-- This section should be hidden by default and shown when there are todos -->
<section class="main">
<input id="toggle-all" class="toggle-all" type="checkbox">
<label for="toggle-all">Mark all as complete</label>
@Klerith
Klerith / instalaciones-ts.md
Last active June 14, 2025 09:34
Instalaciones del curso de TypeScript
@codigoconjuan
codigoconjuan / gist:30973f8e5e7d210e0458bc49a55ad2c4
Last active June 12, 2025 21:33
Gist para Imágenes HTML5 con AVIF, webp y JPG
"imagenes": {
"prefix": "pic",
"body": [
"<picture>",
"<source",
"\t sizes=\"1920w, 1280w, 640w\" ",
"\t srcset=\"img/imagen.avif 1920w, \n\t\t\t img/imagen-1280.avif 1280w, \n\t\t\t img/imagen-640.avif 640w\" ",
"\t type=\"image/avif\">",
"<source",
"\t sizes=\"1920w, 1280w, 640w\" ",
@Klerith
Klerith / instalaciones.md
Created August 20, 2019 19:35
Curso de Dart - Instalaciones