Skip to content

Instantly share code, notes, and snippets.

View fernacas-dev's full-sized avatar
馃槑
Focusing

Fernando Castellanos fernacas-dev

馃槑
Focusing
View GitHub Profile
@Klerith
Klerith / vite-testing-config.md
Last active October 26, 2025 00:18
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:
@CarlosLugones
CarlosLugones / bot.py
Created July 24, 2021 18:30
Telegram bot menus
# This is a way (not optimized) to handle menus on your Telegram bot.
# I haven't tested this code, but it should work.
# Join the community: https://t.me/LugodevChat
import telegram
from telegram import InlineKeyboardMarkup, InlineKeyboardButton, ParseMode, ChatAction
def start(update, context):
update.message.reply_text(
text='Hola, selecciona una opci贸n',