Skip to content

Instantly share code, notes, and snippets.

View omarduarte's full-sized avatar

Omar Duarte omarduarte

  • Acapela
  • Tallinn, Estonia
View GitHub Profile
@omarduarte
omarduarte / junior_should_know
Last active August 29, 2015 14:12
Stuff every Junior Developer should Know
NON-TECH
- Impostor Syndrome
- TODO
- Knowing your tools
- Advice: "Stop judging people for their choice of editor."
- Lesson: TODO
- Touch Typing
- TODO
- Sublime Shortcuts
- TODO
@omarduarte
omarduarte / gist:f73325cbd865854005fc
Last active August 29, 2015 14:04
Explicando el concepto de currying a unos amigos
/*
Currying == A tomar en una funcion que toma varios argumentos, de ahi generar una funcion nueva donde
uno o más de esos argumentos tenga un valor
*/
function add(a,b) {
return a + b;
}
/*
Finish the namespace function so that it sets or gets the value at the path
specified. The first argument should be the root object that the path belongs to.
The 2nd argument is the path itself and the 3rd optional argument is the value
to set at the path.
If a value is provided then the path will be set to that value. Any objects not
present within the path will be created automatically in order for the path to
be successfully set.
/* CODE
Description:
In this kata you have to implement a base converter, which converts between
arbitrary bases / alphabets. Here are some pre-defined alphabets:
var Alphabet = {
BINARY: '01',
OCTAL: '01234567',
DECIMAL: '0123456789',
HEXA_DECIMAL: '0123456789abcdef',
Move the first letter of each word to the end of it, then add 'ay' to the end of the word.
pigIt('Pig latin is cool'); //igPay atinlay siay oolcay