Skip to content

Instantly share code, notes, and snippets.

@mikunalpha
mikunalpha / auth.js
Last active April 11, 2020 12:49
playvuex
import { version } from '../../../package.json'
const authStorageKey = '_auth_store'
const state = {
version: '0.1.0',
accessToken: ''
}
const getters = {
@mikunalpha
mikunalpha / mikungo.sh
Created September 17, 2017 15:25
One Porject One GOPATH
#!/bin/bash
# Chagne here for your project
package=github.com/mikunalpha/mkgo
output=mkgo
# Do not modify here if you do not know about it
vendor=$PWD/vendor
tmpvendor=$PWD/.vendor
@mikunalpha
mikunalpha / makefile
Last active September 21, 2017 06:45
Use glide and makefile to develop golang project in current folder but outside default GOPATH.
package := github.com/mikunalpha/hello
output := hello
vendor := ${PWD}/vendor
tmpvendor := ${PWD}/.vendor
local:.gopath
mv $(vendor) $(tmpvendor) && ln -sf $(tmpvendor) ${PWD}/.gopath/src
env GOPATH=${PWD}/.gopath CGO_ENABLED=0 go build -o $(output)
mv $(tmpvendor) $(vendor) && ln -sf $(vendor) ${PWD}/.gopath/src