Skip to content

Instantly share code, notes, and snippets.

View d-asensio's full-sized avatar
🤿
Working or diving

David Asensio Cañas d-asensio

🤿
Working or diving
View GitHub Profile
class SkipListOptimizer {
private nItemsInList: number
constructor (nItemsInList: number) {
this.nItemsInList = nItemsInList;
}
public optimalLevels () {
const { floor, pow, log10 } = Math;
return floor(
import React, { useEffect, useState, useRef } from 'react'
import PropTypes from 'prop-types'
import styled, { css } from 'styled-components'
import get from 'lodash.get'
import { useLockBodyScroll } from 'react-use'
import { Portal } from '../Portal'
import { Backdrop } from '../Backdrop'