Skip to content

Instantly share code, notes, and snippets.

View lunof's full-sized avatar

Luis Fernández lunof

View GitHub Profile
@lunof
lunof / README-Template.md
Created September 21, 2023 03:39 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

import { NextPage } from 'next';
import { Navbar } from '../modules/shared/web/components';
const Home: NextPage = () => (
<Navbar>
<Navbar.Brand
href="/"
src={SkydropxLogo}
alt="Smiling man stands behind delivery truck"
/>
@lunof
lunof / Navbar.tsx
Created March 1, 2022 15:33
Slot Use
import { FC } from 'react';
import Link, { LinkProps } from 'next/link';
import Image, { ImageProps } from 'next/image';
import { Slot } from './Slot';
type BrandProps = {
href: LinkProps['href'];
} & Pick<ImageProps, 'src' | 'alt'>;
const Brand: FC<BrandProps> = ({ href, src, alt }) => (
@lunof
lunof / Slot.tsx
Last active March 1, 2022 15:34
Slot
import { Children, createContext, FC, ReactNode, useContext } from 'react';
type SlotContextValue = Record<string, ReactNode>;
type SlotRootProps = {
content: ReactNode;
};
type SlotTemplateProps = {
name?: string;
export enum HttpStatus {
CONTINUE = 100,
SWITCHING_PROTOCOLS = 101,
PROCESSING = 102,
EARLYHINTS = 103,
OK = 200,
CREATED = 201,
ACCEPTED = 202,
NON_AUTHORITATIVE_INFORMATION = 203,
NO_CONTENT = 204,

Lorem ipsum dolor...

@lunof
lunof / update-git.sh
Created September 7, 2020 17:36 — forked from YuMS/update-git.sh
Update git to latest version on Ubuntu
#!/bin/bash
sudo add-apt-repository -y ppa:git-core/ppa
sudo apt-get update
sudo apt-get install git -y
@lunof
lunof / command.txt
Created May 5, 2020 21:39 — forked from fbn4sc/command.txt
Delete all branches except master and develop.
git branch | grep -v "master\|develop" | xargs git branch -D
@lunof
lunof / README-español.md
Created March 9, 2020 21:56 — forked from Villanuevand/README-español.md
Una plantilla para hacer un buen README.md. Inspirado en el gist de @PurpleBooth => https://gist.github.com/PurpleBooth/109311bb0361f32d87a2

Título del Proyecto

Acá va un párrafo que describa lo que es el proyecto

Comenzando 🚀

Estas instrucciones te permitirán obtener una copia del proyecto en funcionamiento en tu máquina local para propósitos de desarrollo y pruebas.

Mira Deployment para conocer como desplegar el proyecto.