Skip to content

Instantly share code, notes, and snippets.

/*
Very simple. Uses [gs]etters and caller. Precache '_method in Class' relations using unique `Class.jbId_` and `_method.jbOwnerClassIdMap_`.
*/
(function()
{
var nextClassId = 1;
var _methodInClass = function(_fn, Class)
{
var classId = Class.jbId_;
@epplestun
epplestun / config
Created February 14, 2014 15:48 — forked from kimchy/config
index:
analysis:
analyzer:
string_lowercase:
tokenizer: keyword
filter: lowercase
@epplestun
epplestun / gource.sh
Created October 7, 2015 13:21 — forked from XueshiQiao/gource.sh
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://git.libav.org/libav.git
cd libav
# it will take 3-5 minutes to complie, be patient.
./configure --disable-yasm
make && make install
@epplestun
epplestun / service-worker.js
Created October 23, 2015 09:02 — forked from darkwing/service-worker.js
This is the service worker
var EXTRA_FILES = [
"/xjs/_/js/k=xjs.ntp.en_US._WU8vYndmIc.O/m=jsa,ntp,d,csi/rt=j/d=1/t=zcms/rs=ACT90oH3VDY16AdrgBkBZukM4ZIP3OM-xQ",
];
var CHECKSUM = "e0n4rd";
var BLACKLIST = [
'/gen_204\?',
'/async/',
];