Skip to content

Instantly share code, notes, and snippets.

View crsanti's full-sized avatar

Santiago Camargo Rodríguez crsanti

View GitHub Profile
@crsanti
crsanti / coins.js
Created June 18, 2017 19:50
Coin problem
function makeChange(coins, counts, startIndex, totalAmount) {
if (startIndex >= coins.length) {
let combinations = [];
for (let i = 0; i < coins.length; i++) {
combinations = [...combinations, ...Array(counts[i]).fill(coins[i])];
}
console.log(combinations);
} else if (startIndex === coins.length - 1) {
if (totalAmount % coins[startIndex] === 0) {
counts[startIndex] = totalAmount / coins[startIndex];
@crsanti
crsanti / index.html
Created June 6, 2017 17:02
object-fit
<div class="container">
<div class="image">
<p>object-fit: contain</p>
<img class="object-fit_contain" src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/14179/image.png">
</div>
</div>
@crsanti
crsanti / tutoria.md
Last active May 3, 2017 15:38
Tutoría Chrome Developer tools

Elements:

  • Marcar, mostrar, editar elementos
  • Modificar CSS
    • Modificar estilos, toggle de clase, hover, active, añadir box shadow, color..., animaciones
    • Quick source para mostrar la linea donde se está ejecutando el estilo (Escape, 3 dots...)
  • Modo device
    • Responsive, mostrar 4K con zoom
    • Settings --> Add device
    • Show media queries
@crsanti
crsanti / Typescript Files
Last active April 29, 2017 11:46
TypeScript files
tsconfig.json >= 2.1.0
tslint.json 5.1.0
@crsanti
crsanti / MacKeyboard.ahk
Created March 2, 2017 14:55
Mac keyboard AutoHotKey config for Windows
;-----------------------------------------
; Mac keyboard to Windows Key Mappings
;=========================================
; --------------------------------------------------------------
; NOTES
; --------------------------------------------------------------
; ! = ALT
; ^ = CTRL
; + = SHIFT