Skip to content

Instantly share code, notes, and snippets.

View MinimumViablePerson's full-sized avatar

Nicolas Marcora MinimumViablePerson

View GitHub Profile

Year 1-2: Master the Craft

  • Focus: Deepen coding skills in JavaScript, React, and CSS frameworks while maintaining a stronghold in UX/UI design principles.
  • Action Plan: Enroll in advanced coding bootcamps. Collaborate on open-source projects that blend design and development. Start a vlog or blog series sharing insights on integrating design with development.
  • Outcome: Become a go-to expert for creating seamless, stunning, and user-friendly digital experiences.

Year 2-3: Build Your Brand

  • Focus: Establish a personal brand that screams designer-developer hybrid. Think unique, memorable, and influential.
  • Action Plan: Launch a YouTube channel or podcast interviewing leaders at the intersection of design and development. Speak at conferences. Mentor emerging designer-developers.
  • Outcome: Gain a loyal following and industry recognition. Become a thought leader that bridges the gap between design and code.
@MinimumViablePerson
MinimumViablePerson / reverse.js
Created December 31, 2019 12:38
Recursion from Scratch - reversing a string
const reverse = string => {
// the reverse of an empty string is: just an empty string
if (string === '') return ''
// the reverse of any other string is:
// the reverse of the rest of the string + the first character at the end
const firstCharacter = string.slice(0, 1)
const theRest = string.slice(1)
return reverse(theRest) + firstCharacter
}
@MinimumViablePerson
MinimumViablePerson / fibonacci.js
Last active December 31, 2019 12:26
Recursion from Scratch - fibonacci
const fibonacci = n => {
// The 0th fibonacci number is: 0
if (n === 0) return 0
// The 1st fibonacci number is: 1
if (n === 1) return 1
// The Nth fibonacci number is:
// The fibonacci of N - 1 plus the fibonacci of N - 2
return fibonacci(n - 1) + fibonacci(n - 2)
@MinimumViablePerson
MinimumViablePerson / factorial-evaluation.js
Created December 31, 2019 12:03
Recursion from Scratch - factorial evaluation
factorial(4)
4 * factorial(3)
4 * 3 * factorial(2)
4 * 3 * 2 * factorial(1)
4 * 3 * 2 * 1 * factorial(0)
4 * 3 * 2 * 1 * 1
24
@MinimumViablePerson
MinimumViablePerson / factorial.js
Last active December 31, 2019 11:59
Recursion from Scratch - factorial
const factorial = number => {
// The factorial of 0 is: 1
if (number === 0) return 1
// The factorial of any other number is:
// that number times the factorial of the next number down
return number * factorial(number - 1)
}
@MinimumViablePerson
MinimumViablePerson / infinite-countdown.js
Created December 31, 2019 11:31
Recursion from Scratch - infinitely recursive countdown
// Counting down is:
const countdown = number => {
// Logging the current number and counting down the next number down otherwise.
console.log(number)
countdown(number - 1)
}
@MinimumViablePerson
MinimumViablePerson / recursive-countdown.js
Created December 31, 2019 11:24
Recursion from Scratch - countdown with recursion
// Counting down is:
const countdown = number => {
// Logging `'HAPPY NEW YEAR!'` if we're at zero.
if (number === 0) {
console.log('HAPPY NEW YEAR!')
} else {
// Logging the current number and counting down the next number down otherwise.
console.log(number)
countdown(number - 1)
}
@MinimumViablePerson
MinimumViablePerson / countdown.js
Last active December 31, 2019 11:24
Recursion from Scratch - countdown with a for loop
const countdown = number => {
for (let i = number; i > 0; i--) {
console.log(i)
}
console.log('HAPPY NEW YEAR!')
}
const { keyEquals, any, hasNo, has } = require('./utils')
const itemIdEquals = keyEquals('itemId')
const isScheduledItemSuccess = collectionItem =>
any(
itemIdEquals(collectionItem._id),
hasNo('publishingError')
)