This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class SkipListOptimizer { | |
private nItemsInList: number | |
constructor (nItemsInList: number) { | |
this.nItemsInList = nItemsInList; | |
} | |
public optimalLevels () { | |
const { floor, pow, log10 } = Math; | |
return floor( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const PrimaryDescriptionList = () => ( | |
<DescriptionList | |
flexDirection={['column', 'row']} | |
> | |
<DescriptionList.Item | |
mr={[0, 4]} | |
> | |
<DescriptionList.Label>Label 1</DescriptionList.Label> | |
<DescriptionList.Detail>Detail 1</DescriptionList.Detail> | |
</DescriptionList.Item> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { BaseTheme, Theme, ThemeManager } from 'styled-responsive-theming' | |
import Button from './Button' | |
const breakpoints = [ | |
480, | |
600, | |
840, | |
960, | |
1280, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fs = require('fs-extra') | |
const path = require('path') | |
const chalk = require('chalk') | |
const scissors = require('scissors') | |
const INPUT_FOLDER = './input/' | |
const OUTPUT_FOLDER = './output/' | |
fs.readdirSync(INPUT_FOLDER).forEach(fileName => { | |
let pdf = scissors(path.join(INPUT_FOLDER, fileName)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@function valueToJSON($value, $key) { | |
$is_first_value: true; | |
$json_string: '{#{$key}:{'; | |
@if (type-of($value) == 'map') { | |
$json_string: $json_string + '{'; | |
@each $_key, $_value in $value { | |
@if not($is_first_value) { | |
$json_string: $json_string + ','; |
NewerOlder