Skip to content

Instantly share code, notes, and snippets.

View Leninner's full-sized avatar
🏕️
Focusing!

Lenin Mazabanda Leninner

🏕️
Focusing!
View GitHub Profile
@Leninner
Leninner / vite-testing-config.md
Created August 3, 2022 15:13 — 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:
set number
set mouse=a
syntax enable
set showcmd
set encoding=utf-8
set showmatch
set relativenumber
# Dentro de begin y end van a estar los plugins
call plug#begin('~/.vim/plugged')
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"alignment": "left",
"segments": [
{
"type": "session",
"template": "➜ ",
"style": "plain",
# Prompt
Import-Module posh-git
# Load prompt config
function Get-ScriptDirectory { Split-Path $MyInvocation.ScriptName }
$PROMPT_CONFIG = Join-Path (Get-ScriptDirectory) 'leninner.omp.json'
oh-my-posh --init --shell pwsh --config $PROMPT_CONFIG | Invoke-Expression
# Icons
Import-Module -Name Terminal-Icons
@Leninner
Leninner / History\-11249874\entries.json
Last active June 13, 2022 20:16
Código para automatizar búsquedas laborales en los portales de empleo.
{"version":1,"resource":"file:///d%3A/Dev/React/TypeScript/alameda-ecommerce/src/components/Header/styles.ts","entries":[{"id":"Tbp7.ts","timestamp":1651334760351},{"id":"qMDn.ts","timestamp":1651334819752},{"id":"AjvN.ts","timestamp":1651334852558},{"id":"TihA.ts","timestamp":1652230261654}]}
function reverseString(s) {
try {
console.log(s.split("").reverse().join(""));
} catch(error) {
console.log(error.message);
console.log(s);
}
}
// proxies es6
var empleado = {
nombre: '',
apellido: '',
password: '32ioi4o24'
};
// empleado.nombre = 'alejandro';