Skip to content

Instantly share code, notes, and snippets.

@saqueib
saqueib / errorHandler.js
Last active February 18, 2026 14:54
Global error handling using axios interceptor for http calls http://www.qcode.in/api-error-handling-in-vue-with-axios
import axios from 'axios'
import toast from './toast'
function errorResponseHandler(error) {
// check for errorHandle config
if( error.config.hasOwnProperty('errorHandle') && error.config.errorHandle === false ) {
return Promise.reject(error);
}
// if has response show the error
@sergioska
sergioska / svg2png.sh
Created October 27, 2017 14:00
Convert svg to png on mac from command line
#!/bin/bash
rm -f *.svg.png
for f in *.svg; do
echo "File -> $f"
qlmanage -t -s 1000 -o . $f
done
for f in *.svg.png; do
@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active March 16, 2026 18:53
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example