Skip to content

Instantly share code, notes, and snippets.

View nevadajames's full-sized avatar
🏠
Working from home

nj nevadajames

🏠
Working from home
View GitHub Profile
@nevadajames
nevadajames / axios-catch-error.js
Created August 18, 2018 18:07 — forked from fgilio/axios-catch-error.js
Catch request errors with Axios
axios.put(this.apiBaseEndpoint + '/' + id, input)
.then((response) => {
// Success
})
.catch((error) => {
// Error
if (error.response) {
// The request was made and the server responded with a status code
// that falls out of the range of 2xx
// console.log(error.response.data);
@nevadajames
nevadajames / release.sh
Created November 12, 2018 12:02 — forked from bclinkinbeard/release.sh
Bash script to automate the Git Flow tag/release process
#!/bin/bash
# current Git branch
branch=$(git symbolic-ref HEAD | sed -e 's,.*/\(.*\),\1,')
# v1.0.0, v1.5.2, etc.
versionLabel=v$1
# establish branch and tag name variables
devBranch=develop