Skip to content

Instantly share code, notes, and snippets.

View gndplayground's full-sized avatar
👀
Looking for freelance work

Giang Nguyen gndplayground

👀
Looking for freelance work
View GitHub Profile
@gndplayground
gndplayground / refreshToken.ts
Last active April 27, 2023 09:50
Axios interceptor get new token when token expired example with typescript.
import axios from 'axios';
// Example request
// axios
// .get("http://localhost:8000/get?t=1")
// .then(() => {
// console.log("ok1");
// })
// .catch(e => {
@gndplayground
gndplayground / 1_simple.go
Created April 5, 2018 03:56 — forked from sosedoff/1_simple.go
Golang Custom Struct Tags Example
package main
import (
"fmt"
"reflect"
)
// Name of the struct tag used in examples
const tagName = "validate"
@gndplayground
gndplayground / exampleWebpackConfig.js
Last active September 10, 2017 10:53
Babel loader use settings in Webpack 3 instead .babelrc
{
test: /\.js|jsx?$/,
loaders: [
{
loader: 'babel-loader',
options: {
babelrc: false,
presets: [
['es2015', { modules: false }],
'stage-2',