Skip to content

Instantly share code, notes, and snippets.

View BIWhitfield's full-sized avatar

Ben BIWhitfield

View GitHub Profile

Keybase proof

I hereby claim:

  • I am biwhitfield on github.
  • I am beniwhitfield (https://keybase.io/beniwhitfield) on keybase.
  • I have a public key ASBbvIOHubsbiiY2VPcgPKaolAxg6lgGq11S1wvPcrq2Rgo

To claim this, I am signing this object:

042721047526a18d72c6752a8a3880594c6c6976a50f4011f72638e3a63f3b2aefea68b710aff237e1dd8a7c2f44a724a49403c04011cad810501489dc786cf9be
There are going to be cases where you might want to deploy just a single API endpoint as opposed to all of them. The serverless deploy function command deploys an individual function without going through the entire deployment cycle. This is a much faster way of deploying the changes we make.
For example, to deploy the list function again, we can run the following.
$ serverless deploy function -f ${name of function}
react-native run-android --variant=release
@BIWhitfield
BIWhitfield / img src use require
Last active November 1, 2017 12:23
Require on img src - use require
src={require('../img/night_time-512.png')}
@BIWhitfield
BIWhitfield / find process and kill.md
Created August 2, 2017 16:15
find process and kill

Find:

[sudo] lsof -i :3000

Kill:

kill -9

@BIWhitfield
BIWhitfield / airBnbEslint.txt
Created July 16, 2017 16:33
AirBnb eslint rules install
yarn add --dev eslint-config-airbnb-base eslint-plugin-import eslint-plugin-react eslint-plugin-jsx-a11y
@BIWhitfield
BIWhitfield / IgnoreEslintNoUnusedVars.txt
Created July 13, 2017 15:51
Ignore Eslint no-unused-vars
// eslint-disable-line no-unused-vars
@BIWhitfield
BIWhitfield / bulma import syntax.txt
Last active July 12, 2017 14:00
bulma import syntax
import 'bulma/css/bulma.css';
@BIWhitfield
BIWhitfield / run-ios.sh
Created July 2, 2017 15:08
React Native Run Simulator
react-native run-ios