Skip to content

Instantly share code, notes, and snippets.

View paolaozv's full-sized avatar
💭

Paola paolaozv

💭
  • Barcelona, Spain
View GitHub Profile
import React, { useState, useEffect } from 'react';
import { FiChevronRight, FiChevronLeft } from 'react-icons/fi';
import { FaQuoteRight } from 'react-icons/fa';
import data from './data';
function Slider() {
const [people, setPeople] = useState(data);
const [index, setIndex] = useState(0);
const [isOverPrevBtn, setIsOverPrevBtn] = useState(false);
const [isOverNextBtn, setIsOverNextBtn] = useState(false);
@paolaozv
paolaozv / app.js
Created June 14, 2018 18:38
function getIn
const a = getIn(obj, path, defaultValue)
Ejemplo:
let object = { 'a': [{ 'b': { 'c': 3 } }] };
getIn(object, 'a.b.c', 'default');
// => 'default'
let object2 = {a: { b: { c: 3 } } };
getIn(object2, 'a.b.c', 5);
// => 3
getIn(object2, 'a.b.d', 5) ;
@paolaozv
paolaozv / README-Template.md
Created June 8, 2018 17:10 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

function Stack(){
this.items = [];
this.elements = 0;
this.push = push;
this.pop = pop;
this.isEmpty = isEmpty;
this.peek = peek;
this.size = size;
function push( item ){