Skip to content

Instantly share code, notes, and snippets.

Cheng Fan onlyurei

View GitHub Profile
@onlyurei
onlyurei / gource.sh
Last active Mar 3, 2018 — forked from XueshiQiao/gource.sh
Generate a MP4 Video for your Git project commits using Gource!
View gource.sh
# 1.install gource using HomeBrew
$ brew install gource
# 2.install avconv
git clone git://git.libav.org/libav.git
cd libav
# it will take 3-5 minutes to complie, be patient.
./configure --disable-yasm
make && make install
@onlyurei
onlyurei / nuxt-axios-cache.js
Created Sep 6, 2017 — forked from homerjam/nuxt-axios-cache.js
Simple plugin which decorates the community axios nuxt-module with an lru-cache
View nuxt-axios-cache.js
import hash from 'object-hash';
import sizeof from 'object-sizeof';
import lruCache from 'lru-cache';
const cacheEnabled = true;
const cacheMaxAge = 30 * 60 * 1000;
const cacheMaxSize = 128 * 1000 * 1000;
const getCacheKey = config => hash({
method: config.method,
You can’t perform that action at this time.