I hereby claim:
- I am peterpme on github.
- I am peterpme (https://keybase.io/peterpme) on keybase.
- I have a public key ASDd9ipiMIdjkzvqnBaqXLvRHaN2-tVZtgHng-YSVYRv4Ao
To claim this, I am signing this object:
class Hello extends React.Component { | |
constructor() { | |
this.handleIncrement = this.handleIncrement.bind(this) | |
this.state = { | |
currentIndex: 0 | |
} | |
} |
# belongs in ~/.zshrc | |
#chpwd is a zsh hook | |
function chpwd() { | |
[ -e .nvmrc ] && nvm install | |
} |
// ... | |
atom-workspace, | |
atom-text-editor { | |
font-family: "Fira Code"; | |
text-rendering: optimizeLegibility; | |
font-size: 17px; | |
font-weight: 400; | |
line-height: 1.8; | |
} |
const handleFieldUpdate = (key) => (value) => setState({ [key]: value }) | |
const SomeForm = () => ( | |
<Input | |
placeholder='Name' | |
onChange={handleFieldUpdate('name')} | |
/> | |
) | |
const Input = ({ |
# symlink to ~/.ssh/config | |
Host github.com | |
ControlMaster auto | |
ControlPersist 120 | |
Host * | |
# Always use SSH2. | |
Protocol 2 |
<ApolloTote | |
query={` | |
query { | |
user { | |
imageUrl | |
} | |
} | |
`} | |
renderLoading={() => <Avatar.Loading />} | |
render={value => <Avatar imageUrl={value.user.imageUrl} />} |
I hereby claim:
To claim this, I am signing this object:
updateUser: (variables) => { | |
return mutate({ | |
variables, | |
// when using optimisticResponse and I don't include the values, I get a warning. | |
optimisticResponse: { | |
updateUser: { | |
__typename: 'User', | |
id: 'xyz', | |
setting: undefined, |
import { Constants } from 'expo' | |
const ENV = { | |
dev: { | |
apiUrl: 'http://localhost:1337/api' | |
}, | |
staging: { | |
apiUrl: 'https://staging.orchard.ai/api' | |
}, | |
prod: { |