Skip to content

Instantly share code, notes, and snippets.

View patovd's full-sized avatar

Pato Villarroel patovd

View GitHub Profile
@patovd
patovd / README-español.md
Last active April 29, 2020 00:56 — forked from Villanuevand/README-español.md
Una plantilla para hacer un buen README.md. Inspirado en el gist de @PurpleBooth => https://gist.github.com/PurpleBooth/109311bb0361f32d87a2

Título del Proyecto

Acá va un párrafo que describa lo que es el proyecto

Comenzando 🚀

Estas instrucciones te permitirán obtener una copia del proyecto en funcionamiento en tu máquina local para propósitos de desarrollo y pruebas.

Mira Deployment para conocer como desplegar el proyecto.

@patovd
patovd / migrate-from-php-to-python.md
Created October 20, 2020 01:55 — forked from Jiab77/migrate-from-php-to-python.md
Migrate from PHP to Python

Migrate from PHP to Python

Hi all, recently I've decided to move on and learn Python programming. At first, I though that it would be very difficult but in fact... Not that much. So I've decided to write this little gist and show the main differences between both languages.

I will use try to follow the same order used on this website: https://pythonprogramming.net/introduction-to-python-programming/. It was really usefull to improve my understanding of Python programming.

To finish, I'm assuming that you already got basic knowledge in Object Oriented Programming and already got skills and understanding of PHP programming. This is not intended to explain you how to code in PHP but if you're coming from Python programming, then this gist might help you to migrate from Python to PHP.

Official documentations

@patovd
patovd / expresiones-regulares-en-google-forms-platzi.md
Last active October 24, 2020 17:20
Aprende a usar expresiones regulares para validar tus datos en Google Forms

Formularios de Google un nivel más allá: Validación de datos con Expresiones Regulares.

Seguro conoces esta historia. Creas con emoción un Google Form para registrar la respuesta de cientos de usuarios, estos responden y pronto te desilusionas porque ¡las respuestas están escritas de formas tan diferentes! Números de teléfono con y sin el +, con guiones y sin estos, con espacios, sin espacios, paréntesis… Y claro, el Form solo te dejaba escoger entre texto o número, así que te agarras la cabeza pensando en todo el tiempo que gastarás formateando a mano cada dato para que puedas usar bien la información recolectada.

Abrumador, ¿no?

No, no te abrumes. Hay un camino mejor que corregir celda por celda. Uno que potenciará la toma de datos para que se ingresen como tú desees y evitando tener que corregirlos después. Me refiero a las Expresiones Regulares.