I hereby claim:
- I am hypervillain on github.
- I am hypervillain (https://keybase.io/hypervillain) on keybase.
- I have a public key ASBVQkB2fqw_HUupzN58OW_VduzJ7sVCoHSlVfpKUntzkgo
To claim this, I am signing this object:
| import { Client } from '../prismic' | |
| import SliceZone from 'next-slicezone' | |
| import { useGetStaticProps, useGetStaticPaths } from 'next-slicezone/hooks' | |
| import resolver from '../sm-resolver.js' | |
| const Page = (props) => <SliceZone {...props} resolver={resolver} /> | |
| export const getStaticProps = useGetStaticProps({ | |
| client: Client(), |
I hereby claim:
To claim this, I am signing this object:
| const { Octokit } = require('@octokit/rest') | |
| const octo = new Octokit({ | |
| auth: 'an-access-token-with-delete-repo-scope' | |
| }) | |
| /** try w/ one first 😛 */ | |
| const repos = ['travis-tests'] | |
| const owner = 'hypervillain' |
| import { Component } from 'react'; | |
| import { func } from 'prop-types'; | |
| // See related Gist | |
| import MousePosListener from '../MousePosListener'; | |
| const distancePoints = (x1, y1, x2, y2) => | |
| Math.sqrt((x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2)); | |
| class ForwardProximity extends Component { |
| import { Component } from 'react'; | |
| import PropTypes from 'prop-types'; | |
| class ForwardState extends Component { | |
| static propTypes = { | |
| children: PropTypes.func.isRequired, | |
| ComponentWrapper: PropTypes.string || PropTypes.node, | |
| init: PropTypes.object, // eslint-disable-line react/forbid-prop-types | |
| setStatePropName: PropTypes.string, | |
| statePropName: PropTypes.string, |
| // See it in action here: https://codesandbox.io/s/ovyk4qx8yy | |
| import React, { Component } from 'react'; | |
| import PropTypes from 'prop-types'; | |
| class ForwardScroll extends Component { | |
| static propTypes = { | |
| children: PropTypes.func.isRequired, | |
| ComponentWrapper: PropTypes.node || PropTypes.string, | |
| } |
| import { Component } from 'react'; | |
| import PropTypes from 'prop-types'; | |
| class ForwardRef extends Component { | |
| static propTypes = { | |
| children: PropTypes.func.isRequired, | |
| ComponentWrapper: PropTypes.string || PropTypes.node, | |
| refPropName: PropTypes.string, | |
| } | |
| static defaultProps = { |
| import { Component } from 'react'; | |
| import PropTypes from 'prop-types'; | |
| /* | |
| Example: | |
| <KeyListener | |
| actions={[ | |
| { | |
| keyCode: 27, | |
| method: (e) => { |
| // See it in action here https://codesandbox.io/s/mkznro61j | |
| import React, { Component } from 'react'; | |
| import { render } from 'react-dom'; | |
| import PropTypes from 'prop-types'; | |
| import { | |
| BrowserRouter, | |
| Link, |
| import React, { Component } from 'react'; | |
| import PropTypes from 'prop-types'; | |
| import Measure from 'react-measure'; | |
| import classnames from 'classnames'; | |
| // replace this if you don't use CSS modules | |
| import cls from './affix.module.scss'; | |
| class Affix extends Component { |