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
<ApolloTote | |
query={` | |
query { | |
user { | |
imageUrl | |
} | |
} | |
`} | |
renderLoading={() => <Avatar.Loading />} | |
render={value => <Avatar imageUrl={value.user.imageUrl} />} |
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
# symlink to ~/.ssh/config | |
Host github.com | |
ControlMaster auto | |
ControlPersist 120 | |
Host * | |
# Always use SSH2. | |
Protocol 2 |
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 handleFieldUpdate = (key) => (value) => setState({ [key]: value }) | |
const SomeForm = () => ( | |
<Input | |
placeholder='Name' | |
onChange={handleFieldUpdate('name')} | |
/> | |
) | |
const Input = ({ |
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
// ... | |
atom-workspace, | |
atom-text-editor { | |
font-family: "Fira Code"; | |
text-rendering: optimizeLegibility; | |
font-size: 17px; | |
font-weight: 400; | |
line-height: 1.8; | |
} |
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
# belongs in ~/.zshrc | |
#chpwd is a zsh hook | |
function chpwd() { | |
[ -e .nvmrc ] && nvm install | |
} |
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 Hello extends React.Component { | |
constructor() { | |
this.handleIncrement = this.handleIncrement.bind(this) | |
this.state = { | |
currentIndex: 0 | |
} | |
} |
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
for env in `cat .env`; | |
do heroku config:set $env; | |
done; |
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
#!/usr/bin/zsh -e | |
sites=('your' 'array' 'of' 'sites') | |
for i in $sites; do | |
echo "$i\n------" | |
cd $i | |
heroku stack:set cedar-14 | |
git commit --allow-empty -m "Upgrading to Cedar-14" | |
git push origin master |
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
{ | |
"parser": "babel-eslint", | |
"plugins": ["react"], | |
"env": { | |
"es6": true, | |
"browser": true, | |
"node": true, | |
"mocha": true | |
}, | |
"rules": { |