Skip to content

Instantly share code, notes, and snippets.

View Mardiniii's full-sized avatar

Sebastian Zapata Mardini Mardiniii

View GitHub Profile
@Mardiniii
Mardiniii / push_pull_heroku_database.md
Last active February 23, 2024 09:19
Pull and push DATABASE with Heroku

# Some tips to pull and push a database with Heroku

Some tips to improve test flow dealing with database on local and production environments.

I. Pull database from Heroku

It is really usefull if you want to fill your local database with real data from production environment.

1. Drop Local Database

Gist for Atom Sync-Settings plugin
@Mardiniii
Mardiniii / .slate
Created February 2, 2017 19:02
Config file for Slate
# My basic ~/.slate file.
# It has some tweaks so it doesn't fuck with my IDE
config defaultToCurrentScreen true
config nudgePercentOf screenSize
config resizePercentOf screenSize
# Resize Bindings -> resize
bind right:alt;ctrl resize +5% +0
bind left:alt;ctrl resize -5% +0
@Mardiniii
Mardiniii / alegra_integration_termination_module.md
Last active February 15, 2017 21:08
Verifying the integration with Alegra when the users sends a termination payment.

I ran a test with a real termination. After terminate his contract, the employee has the information below:

Quincename

Only termination data: image

Only payroll data: image

@Mardiniii
Mardiniii / compresing_text_challenge.md
Last active February 16, 2017 23:05
Make It Real Challenge for V4 students.

HOY TENEMOS UN RETO!!!

Nos contactó la Fiscalia General de la nación, estan enloquecidos con la cantidad de documentos e información física que tienen en sus archivadores, no estan conformes con digitalizarla o escanearla ya que esto significaría demasiadas gigas de almacenamiento y no sería optimo, por lo tanto quieren que solucionemos este problema en el menor tiempo posible con un algoritmo de compresión.

## ¿Como lo haremos?

Debemos crear un algoritmo que nos permita comprimir la información de todos los procesos penales que allí se llevan a cabo, para eso debemos implementar la siguiente funcionalidad:

Si tenemos el siguiente texto:

@Mardiniii
Mardiniii / arrays_challenge.md
Last active June 29, 2017 17:50
Collections Practice

# Practica de Arrays

zombie_apocalypse_supplies = ["hatchet", "rations", "water jug", "binoculars", "shotgun", "compass", "CB radio", "Tactical 10mm"]
  1. Itera sobre el array zombie_apocalypse_supplies, imprimiendo cada elemento dentro del array.

  2. Para mantenernos organizados, organiza el array zombie_apocalypse_supplies de forma alfabetica.

@Mardiniii
Mardiniii / files_challenges.md
Last active February 22, 2017 19:56
Some challenges to practice files with ruby.

Practica de archivos

En esta práctica repasaremos el manejo de archivos pueden visitar los ejercicios que trabajamos durante la sección anterior en el siguiente repositorio.

Para empezar con esta práctica crea un repositorio en GitHub, donde se encuentre los archivos necesarios para el desarrollo de la práctica y resuelve cada uno de los siguientes ejercicios en un archivo independiente:

1- Lee el archivo students.txt e imprime su contenido

2- Itera sobre cada una de las lineas del archivo students.txt e imprime cada linea de la siguiente forma:

Make It Real Blog App

  1. Crear aplicación de rails
  • Con el nombre make-it-real-blog
  • Abrir el folder de la aplicación con atom
  1. Crear base de datos
  • Generar modelo Post:
    • author:string
  • title:string
@Mardiniii
Mardiniii / .gitconfig
Created April 24, 2017 14:16
File to set up some special GitHub aliases and profiles.
[user]
name = mardiniii
email = sezama03@hotmail.com
[color]
ui = true
[alias]
ch = checkout
com = commit -m
coma = commit -am
all = add .
@Mardiniii
Mardiniii / gist:81e2418324f3b3b81202d5b3674b8b56
Created May 16, 2017 12:18 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue: