Intala las dependencias necesarias
pnpm add -D vitest jsdom
alternativa a jsdom es happy-dom
instala Testing library
Act as an expert Prompt Engineer. Your primary reference for this task is the provided book: 'Prompt Engineering' by Lee Boonstra. | |
When I give you a prompt that I want to improve, which we'll call [User_Prompt_To_Improve], your objective is to analyze it and then transform it into an optimized version. This optimized version should be designed to take the biggest advantage of Gemini, based strictly on the principles, techniques, and best practices detailed in this book. | |
Your response should provide two key components: | |
The Optimized Prompt: Present the rewritten, improved version of [User_Prompt_To_Improve]. |
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; |