I hereby claim:
- I am jonathanconway on github.
- I am jonathanconway (https://keybase.io/jonathanconway) on keybase.
- I have a public key ASA7Vervmw8Z4dy8JI_5Z8sxZKGUfLNvdtjatCLQ6NdtZgo
To claim this, I am signing this object:
| import { get, omit } from "lodash"; | |
| import { ComponentType } from "react"; | |
| export function createWithHOC<THOCProps, THOCName extends string>( | |
| HOC: ComponentType<THOCProps>, | |
| hocName: THOCName, | |
| ) { | |
| return function withHOC<TLOCProps extends JSX.IntrinsicAttributes>( | |
| LOC: ComponentType<TLOCProps>, | |
| ) { |
| { | |
| "tabWidth": 2, | |
| "useTabs": false, | |
| "singleQuote": false, | |
| "importOrder": ["^[@]?[a-zA-Z]", "^[@/a-zA-Z]", "^../", "^./"], | |
| "importOrderSeparation": true, | |
| "importOrderSortSpecifiers": true, | |
| "plugins": ["@trivago/prettier-plugin-sort-imports"] | |
| } |
| alias subl='open -a "Sublime Text"' | |
| alias l="ls -la" |
| /** | |
| * Enum which supports attached methods. | |
| * Each method's `this` is the enum object. | |
| */ | |
| class Enum { | |
| /** | |
| * @param items {Object} Enum keys and values as a plain object | |
| * @param methods {Object} Enum methods as a plain object | |
| * (names are keys, values are methods) | |
| */ |
| ################################################################################ | |
| # | |
| # 1. Save this file to /usr/local/bin | |
| # | |
| # 2. To make it executable: chmod u+x /usr/local/bin/create-react-app-minimal.sh | |
| # | |
| # 3. To create your app: create-react-app-minimal {app-name} | |
| # | |
| # 4. In your package.json, change this line: | |
| # "test": ... |
I hereby claim:
To claim this, I am signing this object:
| #!/bin/bash | |
| docker rm --force $(docker ps --all -q) | |
| docker rmi --force $(docker images --all -q) |
| #!/bin/bash | |
| echo #!/bin/bash > $0 | |
| chmod u+x $0 # set permissions so that it's to be executable |
| import React, { PureComponent, PropTypes } from 'react'; | |
| export default class Timer extends PureComponent { | |
| static propTypes = { | |
| interval: PropTypes.number, | |
| onExpiry: PropTypes.func | |
| }; | |
| constructor(props) { | |
| super(props); |