Skip to content

Instantly share code, notes, and snippets.

Cheng Fan onlyurei

View GitHub Profile
onlyurei /
Last active Mar 3, 2018 — forked from XueshiQiao/
Generate a MP4 Video for your Git project commits using Gource!
# 1.install gource using HomeBrew
$ brew install gource
# 2.install avconv
git clone git://
cd libav
# it will take 3-5 minutes to complie, be patient.
./configure --disable-yasm
make && make install
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.