Skip to content

Instantly share code, notes, and snippets.

@Klerith
Klerith / producto_model.dart
Created June 12, 2019 15:37
BeatsApp Parte 2: Provider y modelo
// To parse this JSON data, do
//
// final productoModel = productoModelFromJson(jsonString);
import 'dart:convert';
ProductoModel productoModelFromJson(String str) => ProductoModel.fromJson(json.decode(str));
String productoModelToJson(ProductoModel data) => json.encode(data.toJson());
@Klerith
Klerith / Navbar.js
Created May 20, 2020 15:26
Un NavBar de Bootstrap rápido para el curso de React de cero a experto
import React from 'react'
import { Link, NavLink } from 'react-router-dom'
export const Navbar = () => {
return (
<nav className="navbar navbar-expand-sm navbar-dark bg-dark">
<Link
className="navbar-brand"
to="/"
@Klerith
Klerith / login.css
Created June 8, 2020 15:36
Estilos - Login-Template-MERN-Calendar
.login-container{
margin-top: 15%;
}
.login-form-1{
border-radius: 5px;
box-shadow: 0 5px 8px 0 rgba(0, 0, 0, 0.2), 0 9px 26px 0 rgba(0, 0, 0, 0.19);
padding: 5%;
}
.login-form-1 h3{
text-align: center;
@Klerith
Klerith / login.css
Created June 8, 2020 15:36
Estilos - Login-Template-MERN-Calendar
.login-container{
margin-top: 15%;
}
.login-form-1{
border-radius: 5px;
box-shadow: 0 5px 8px 0 rgba(0, 0, 0, 0.2), 0 9px 26px 0 rgba(0, 0, 0, 0.19);
padding: 5%;
}
.login-form-1 h3{
text-align: center;
@Klerith
Klerith / index.d.ts
Created January 8, 2018 17:15
Firebase Typings
/**
* Generated with a couple of manual tweaks from externs/firebase-app-externs.js
* with the tool at http://fivetran.github.io/typescript-closure-tools/
*/
declare namespace firebase.app {
interface App {
/**
* The (read-only) name (identifier) for this App. '[DEFAULT]' is the name of
@Klerith
Klerith / enlaces.md
Created September 17, 2020 18:46
Recursos de la sección de Películas
@Klerith
Klerith / section-list.tsx
Created March 16, 2021 15:10
Data para trabajar el SectionList
interface Casas {
casa: string;
data: string[];
}
const casas: Casas[] = [
{
casa: "DC Comics",
data: ["Batman", "Superman", "Robin", ]
@Klerith
Klerith / SlideShow-data.tsx
Created March 16, 2021 23:01
Data del slideshow que haremos en React Native
interface Slide {
title: string;
desc: string;
img: ImageSourcePropType
}
const items: Slide[] = [
{
title: 'Titulo 1',
desc: 'Ea et eu enim fugiat sunt reprehenderit sunt aute quis tempor ipsum cupidatat et.',
@Klerith
Klerith / app-build.gradle
Created March 30, 2021 16:58
React-Native - Crash tan pronto abre
android {
packagingOptions {
pickFirst '**/armeabi-v7a/libc++_shared.so'
pickFirst '**/x86/libc++_shared.so'
pickFirst '**/arm64-v8a/libc++_shared.so'
pickFirst '**/x86_64/libc++_shared.so'
pickFirst '**/x86/libjsc.so'
pickFirst '**/armeabi-v7a/libjsc.so'
}
@Klerith
Klerith / RouteGenerator.dart
Created April 21, 2021 18:29
Un archivo para generar rutas
import 'package:flutter/material.dart';
import 'package:renso_routing/pages/home.dart';
import 'package:renso_routing/pages/second.dart';
class RouteGenerator {
static Route<dynamic> generateRoute( RouteSettings settings ){
final args = settings.arguments;
switch( settings.name ) {