Skip to content

Instantly share code, notes, and snippets.

View edsonv's full-sized avatar

Edson J Vargas edsonv

  • Bogotá, Colombia
View GitHub Profile
@edsonv
edsonv / vite-testing-config.md
Created November 7, 2023 14:46 — forked from Klerith/vite-testing-config.md
Vite + Jest + React Testing Library - Configuraciones a seguir

Instalación y configuracion de Jest + React Testing Library

En proyectos de React + Vite

  1. Instalaciones:
yarn add --dev jest babel-jest @babel/preset-env @babel/preset-react 
yarn add --dev @testing-library/react @types/jest jest-environment-jsdom
  1. Opcional: Si usamos Fetch API en el proyecto:
@edsonv
edsonv / manualFontsInstallation.md
Last active January 22, 2019 23:43
Fonts manuall installation on Ubuntu 16.04

Methods to install fonts on Ubuntu 16.04

After having selected the font you want to install and having its files compressed in ZIP format file, you can choose the method that bests suits your need and curiosities.

1. Manual Installation

Once you get the ZIP file follow these steps:

Installing the fonts

Open a terminal and excecute the next block of code each line at a time, replacing the new_dir and font_name.zip with the right input:

cd /usr/share/fonts
@edsonv
edsonv / gist:e6f3361cd288cdaa53c8a56f20ea7836
Last active August 28, 2018 03:06
Comandos comunes a usar en Git y Github
git status - checks the state of a repo
git add - stages updates
git commit - commits updates
git checkout - switches branch
git branch - lists existing branches
git log - shows commit history
git clone -
@edsonv
edsonv / gh-pages-deploy.md
Created August 21, 2018 18:49 — forked from cobyism/gh-pages-deploy.md
Deploy to `gh-pages` from a `dist` folder on the master branch. Useful for use with [yeoman](http://yeoman.io).

Deploying a subfolder to GitHub Pages

Sometimes you want to have a subdirectory on the master branch be the root directory of a repository’s gh-pages branch. This is useful for things like sites developed with Yeoman, or if you have a Jekyll site contained in the master branch alongside the rest of your code.

For the sake of this example, let’s pretend the subfolder containing your site is named dist.

Step 1

Remove the dist directory from the project’s .gitignore file (it’s ignored by default by Yeoman).

@edsonv
edsonv / LICENSE
Last active August 14, 2018 01:59
MIT License - A short and simple permissive license with conditions only requiring preservation of copyright and license notices. Licensed works, modifications, and larger works may be distributed under different terms and without source code.
MIT License
Copyright (c) 2018 Edson J Vargas
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@edsonv
edsonv / Dropbox hero section replica.markdown
Created July 10, 2016 05:57
Dropbox hero section replica