Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View Mardiniii's full-sized avatar

Sebastian Zapata Mardini Mardiniii

View GitHub Profile
@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 / 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:

@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 / .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:
@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 / finance_script_tools.md
Last active December 26, 2017 14:35
In this gist you will find the main scripts used by the finance team in its daily workflow. Feel free to add any comment or question.

Why we are doing this?

We want to have a centralized source where any person from the finance team or the product department can find easy and fast the scripts and code related to the tasks from our team.

What do you need?

You will need access to the staging and production consoles, if you are not available to got into this enviroments talk to the Systems Team in #dev-systems Slack channel.

Invoice Generation

If you want to see the current implementation for this process you can check this Flow Diagram any comment about this process ask in #dev-finance Slack channel.

For global - All agencies

@Mardiniii
Mardiniii / sudoku_solver.go
Last active April 15, 2018 16:44
Snippet for medium post
// Solve algorithm
func (s *Sudoku) Solve() bool {
// Find the next pending position in the board
pending, row, col := s.pendingPositions()
// If there aren't more pending positions we did
// and the problem is solved
if !pending {
return true
}
// If not, let's try to find a solution for the pending position
@Mardiniii
Mardiniii / concurrent_factorial.go
Last active April 15, 2018 16:46
Snippet for medium post
package main
import "fmt"
// Factorial recursive function to find the factorial result
// using go routines and the channel passed as parameter
func Factorial(number int, product int, ch chan int) {
// Calculate the product until this point
product = product * number