This file contains hidden or 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
HOSTNAME=einar.local | |
PORT=5555 | |
HOST=http://$HOSTNAME:$PORT |
This file contains hidden or 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
type Props< | |
T extends React.FunctionComponent, | |
P extends keyof Parameters<T>[0] | |
> = Pick<Parameters<T>[0], P> |
This file contains hidden or 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
type Props< | |
T extends React.FunctionComponent, | |
P extends keyof Parameters<T>[0] | |
> = Pick<Parameters<T>[0], P> |
This file contains hidden or 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 from 'react' | |
import { useTransition, config, animated } from 'react-spring' | |
import Layout from './Layout' | |
import SiteHeader from './SiteHeader' | |
import SiteFooter from './SiteFooter' | |
const isBrowser = typeof window !== 'undefined' | |
const Root = ({ children, ...props }) => { | |
const headerRef = React.useRef() |
This file contains hidden or 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 from 'react' | |
let globalZIndex = 1000 | |
const useOverlay = ({ onClickOutside, ref }) => { | |
// Used for detecting touch to not fire onClickOutside twice | |
const isTouchRef = React.useRef(false) | |
// Create a z-index that is overlaying all other layers with 1 | |
const zIndex = React.useMemo(() => globalZIndex += 1, []) |
This file contains hidden or 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
{"lastUpload":"2018-05-04T08:22:20.231Z","extensionVersion":"v2.9.2"} |
This file contains hidden or 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 createQuery = query => ({ | |
[REACT_FIREBASE_QUERY_SYMBOL]: true, | |
query, | |
}) | |
export default connect(props => ({ | |
pathSubscription: 'path/to/data', | |
deepSubscription: { | |
a: { | |
aa: 'path/to/data/a/aa', |
This file contains hidden or 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
/* eslint-disable no-bitwise */ | |
export default (inputColor, amt) => { | |
let usePound = false | |
let color = inputColor | |
if (color[0] === '#') { | |
color = color.slice(1) | |
usePound = true | |
} |
This file contains hidden or 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 path from 'path' | |
import fs from 'fs' | |
export default root => { | |
const stories = [] | |
const loopFiles = context => { | |
fs.readdirSync(context).forEach(name => { | |
const filepath = path.join(context, name) | |
if (fs.lstatSync(filepath).isDirectory()) { |
This file contains hidden or 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
-scheme:chrome-extension -sockjs-node |
NewerOlder