Skip to content

Instantly share code, notes, and snippets.

View JonaMX's full-sized avatar

Jonatan Juárez JonaMX

View GitHub Profile
@JonaMX
JonaMX / RamdaChallenge.js
Last active September 20, 2019 03:43
Exercise: code the `cleanse` function, which will recursively omit null and undefined values from the provided object tree. https://goo.gl/o7a6Qm.
// https://ramdajs.com/repl/#?%2F%2F%20Most%20simple%20but%20not%20cleaning%20nested%20objects%0Aconst%20cleanseSimple%20%3D%20R.reject%28R.isNil%29%3B%0A%0A%2F%2F%20First%20Attempt%0A%2F%2F%20This%20approach%20is%20not%20working%20for%20an%20array%20of%20objects%20due%20to%20the%20%0A%2F%2F%20initialize%20of%20the%20result%20variable%0Aconst%20cleanseFirstAttempt%20%3D%20%28object%29%20%3D%3E%20%7B%20%0A%20%20object%20%3D%20cleanseSimple%28object%29%3B%0A%20%20let%20result%20%3D%20%7B%7D%3B%0A%20%20for%20%28let%20key%20in%20object%29%7B%0A%20%20%20%20%2F%2F%20An%20Array%20is%20an%20Object%2C%20but%20an%20Object%20is%20not%20an%20Array%0A%20%20%20%20result%5Bkey%5D%20%3D%20R.is%28Object%2C%20object%5Bkey%5D%29%20%26%26%20%21R.is%28Array%2C%20object%5Bkey%5D%29%0A%20%20%20%20%20%20%3F%20cleanseFirstAttempt%28object%5Bkey%5D%29%0A%20%20%20%20%20%20%3A%20object%5Bkey%5D%3B%20%0A%20%20%7D%0A%20%20return%20result%3B%0A%7D%3B%0A%0A%2F%2F%20Second%20Attempt%0Aconst%20cleanse%20%3D%20R.compose%28%28object%29%20%3D%3E

CryptoCurrency Dashboard Challenge

Description

Create a web application to display in real time the price of the cryptocurrencies Bitcoin (BTC) and Etherium (ETH)

User stories

Feature: As a visitor I should be able to see a graph with the last prices of
the BTC and ETH currencies
@JonaMX
JonaMX / game_of_life_challenge.md
Last active July 21, 2021 03:45
Game of Life Challenge

Game of Life Challenge

Description

We love games, that's why we are challenging you to create a web application version of the famous game "Game of life".

User stories

  • As a visitor I should be able to edit the initial state of the cells
  • As a visitor I should be able to start the game by clicking the "Start" button
  • As a visitor I should be able to stop the game by clicking the "Stop" button

Body Mass Index Challenge

Description

Create a web application to calculate the body mass index given the mass and height of the user. The application must indicate the category accordingly to the standard. You should register as a user in order to use the application and calculate your body mass index.

User stories

  • As a visitor I should be able to register myself as a user in order to use the body mass calculator
  • As a user I should be able to calculate my body mass in order to know if I have overweight or underweight

What are we going to evaluate ?