Skip to content

Instantly share code, notes, and snippets.

@Klerith
Klerith / flutter-instalaciones.md
Last active May 11, 2024 04:26
Instalaciones del curso de Flutter - Móvil de cero a experto
@Klerith
Klerith / vite-testing-config.md
Last active May 11, 2024 17:14
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:
@geolimber
geolimber / README.md
Last active May 4, 2022 19:08
Install Python3.9.4 and Apache mod_wsgi on Debian (AWS Lightsail, EC2)

Install latest Python and Apache mod_wsgi on Debian (AWS Lightsail, EC2)

Step 1. Download python binaries

wget https://www.python.org/ftp/python/3.9.4/Python-3.9.4.tgz
tar zxvf Python-3.9.4.tgz
cd Python-3.9.4

Step 2. Configure building python from sources

@Klerith
Klerith / modal.css
Created June 8, 2020 17:40
React Modal Styles
/* Modal */
.ReactModalPortal > div{
opacity: 0;
}
.ReactModalPortal .ReactModal__Overlay {
align-items: center;
display: flex;
justify-content: center;
transition: opacity .2s ease-in-out;
@Klerith
Klerith / calendar-messages-es.js
Last active April 24, 2024 11:57
Big-Calendar - mensajes en español
export const messages = {
allDay: 'Todo el día',
previous: '<',
next: '>',
today: 'Hoy',
month: 'Mes',
week: 'Semana',
day: 'Día',
agenda: 'Agenda',
date: 'Fecha',
@Klerith
Klerith / heroes-with-desc.js
Last active April 24, 2024 19:55
Una colección de Super Héroes
export const heroes = [
{
'id': 'dc-batman',
'superhero':'Batman',
'publisher':'DC Comics',
'alter_ego':'Bruce Wayne',
'first_appearance':'Detective Comics #27',
'characters':'Bruce Wayne'
},
{
@anareyna
anareyna / parsley_es.js
Last active November 26, 2021 20:50
How to use Parsley validation
// ParsleyConfig definition if not already set
window.ParsleyConfig = window.ParsleyConfig || {};
window.ParsleyConfig.i18n = window.ParsleyConfig.i18n || {};
window.ParsleyConfig.i18n.es = $.extend(window.ParsleyConfig.i18n.es || {}, {
defaultMessage: "Este valor parece ser inválido.",
type: {
email: "Ingrese un email válido.",
url: "Ingrese una URL válida.",
number: "Ingrese un número válido.",
@efrenfuentes
efrenfuentes / numero_letras.py
Created September 26, 2012 02:29
Numero a letras (Python)
#!/usr/bin/python
# -*- coding: utf-8 -*-
__author__ = 'efrenfuentes'
MONEDA_SINGULAR = 'bolivar'
MONEDA_PLURAL = 'bolivares'
CENTIMOS_SINGULAR = 'centimo'