Intala las dependencias necesarias
pnpm add -D vitest jsdom
alternativa a jsdom es happy-dom
instala Testing library
Intala las dependencias necesarias
pnpm add -D vitest jsdom
alternativa a jsdom es happy-dom
instala Testing library
Documentaci贸n oficial sobre Jest
npm install -D jest @types/jest ts-jest supertest
// ==UserScript== | |
// @name Ocultar scrollbar | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Inyectar CSS para ocultar scrollbars | |
// @author Angel | |
// @match https://www.udemy.com/* | |
// @grant none | |
// ==/UserScript== |
git config --global alias.lg "log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all"
git config --global alias.s "status --short"
git config --global alias.s "status -sb"
// ==UserScript== | |
// @name Udemy Video Pause with K | |
// @namespace http://tampermonkey.net/ | |
// @version 1.0 | |
// @description Control Udemy videos with the K key instead of space. | |
// @author 脕ngel | |
// @match https://www.udemy.com/* | |
// @grant none | |
// ==/UserScript== |
export const timeSince = ( date: string ) => { | |
const baseDate = new Date(date) | |
const seconds = Math.floor(( new Date().getTime() - baseDate.getTime() ) / 1000); | |
let interval = seconds / 31536000; |