traviscj blog
我还没有学会写个人说明!
访问网站

作者专栏

moar stupid jquery tricks

moar stupid jquery tricks

Sometimes it's useful to use tampermonkey on a site without nice id s for the elements you want to edit. It turns out it's still pretty easy! Takemy own website; I have ele ...
mysql feeds

mysql feeds

At work, we use a pattern called feeds that gets an incredible amount of work done. I've been wanting to describe it here for quite a while, and now seems as good of time as any. T ...
constraint violations in tests

constraint violations in tests

I had some test code that looked something like @Test public void a() { db.insert(0, "a"); assertThat(db.query(1).getKey()).isEqualTo("a"); } @Test public void ...
guava RangeMap

guava RangeMap

We had some code like this: NavigableMap PRIORITY_MULTIPLIERS = new TreeMap() {{ put(LOW_THRESHOLD, 1); // (20k..40k) => 1 put(MEDIUM_THRESHOLD, 2); // [40k..100k) => 2 ...

分页导航