Skip to content

Instantly share code, notes, and snippets.

View diegosky1's full-sized avatar

Diego Quevedo diegosky1

View GitHub Profile
@diegosky1
diegosky1 / interview.md
Last active November 28, 2017 16:56
Entrevista técnica - Play Business

Bienvenido, de una serie de aplicantes tu y algunos candidatos más pasaron a la fase de entrevista. El objetivo de esta prueba es simplemente conocer tu estilo de programar y analizar tu creatividad para desarrollar algo cuando tienes poca información. Esto sucede todo el tiempo en Play Business y tenemos una cultura tatuada de MVPs para probar nuestros conceptos, prueba los tuyos con estos drills.

Algo de calentamiento!!

1.- Imagina que tienes un arreglo de 1,000 valores (del 1, 2, 3,.. 1,000). Sin embargo, al analizar el tamaño del arreglo te das cuenta que faltan dos valores, no sabes cuales son. Escribe un método que permita saber los valores faltantes y dime por qué decidiste hacerlo de esa manera, ¿Cual es la ventaja?

Fácil hasta ahora verdad? Ok...

2.- Construye Pinterest.

Make it shine

3.- Haz un refactor del siguiente código

@diegosky1
diegosky1 / scss-cheat-sheet
Created June 8, 2015 13:51
scss cheat sheet
This applies to every paragraph with class center
p.center {
text-align: center;
color: red;
}
HAML Markup that applies to the last css
%p.center This paragraph is color red
%p.center
This is a red too
@diegosky1
diegosky1 / setup_recipe_osx.md
Created January 14, 2019 15:38
setup for osx

global computer set up

——— Terminal settings ------ *iterm + prezto (sorin theme)

editar ~/.zpreztorc y poner estos módulos

Set the Prezto modules to load (browse modules).

The order matters.

@diegosky1
diegosky1 / decrypted_contract.html
Created January 25, 2019 18:01
decrypted contract
irb(main):081:0> EncryptorService.decrypt(encrypted_contract)
=> "<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;text-align: center;\"><span style=\"font-size:11pt;font-family:Lato;color:#000000;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">CONTRATO PLAY</span></p><p><b style=\"font-weight:normal;\" id=\"docs-internal-guid-6bd393a2-55a0-c073-ea88-9b085d32ced5\"><br></b></p><p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;text-align: justify;\"><span style=\"font-size:11pt;font-family:Lato;color:#000000;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">CONTRATO DE INVERSIONES COLECTIVAS QUE CELEBRAN POR UNA PARTE LAS PERSONAS IDENTIFICADAS EN EL </span><span style=\"font-size:11pt;font-family:Lato;color:#000000;background-color:transparent;font-weight:700;fon

Congratulations and welcome to the 2nd interview!

Preamble

Play Business is in constant change and we're always reinventing ourselves, our processes and our products to meet users' expectations using every analytical, creative and technologycal tool we have at our disposal. Even when an specific resource isn't handy, we find a way to get it or at least replace it with another approach... There's wlays a way.

At this moment, after having invested time in the making of a pure-equity investment model by investing in startups... PB has already found product-market fit with the latest revenue-based investment product, which consists of a hybrid financial-legal model that combines the pure-equity and royalties model, which allows anyone to invest in the expansion of brands by opening self-owned points of sale... what? Ok this means that if Starbucks wants to open 20 new stores, anyone could invest from $2,500 MXN in order to receive a percentage of the sales of those 20 soon-to-be stores, and even get p