Skip to content

Instantly share code, notes, and snippets.

Avatar

LanderlYoung LanderlYoung

  • Tencent.
  • Shenzhen City, Guang Dong province, R.P China
View GitHub Profile
@mariotaku
mariotaku / ListScrollDistanceCalculator.java
Created Oct 26, 2014
Calculate list scroll distance without any modification to ListView and ListAdapter. great for QuickReturn pattern
View ListScrollDistanceCalculator.java
package org.mariotaku.twidere.util;
import android.view.View;
import android.widget.AbsListView;
import android.widget.AbsListView.OnScrollListener;
/**
* Created by mariotaku on 14/10/22.
*/
public class ListScrollDistanceCalculator implements OnScrollListener {
@dahlia
dahlia / lisp.rb
Created Sep 2, 2010
30 minutes Lisp in Ruby
View lisp.rb
# 30 minutes Lisp in Ruby
# Hong Minhee <http://dahlia.kr/>
#
# This Lisp implementation does not provide a s-expression reader.
# Instead, it uses Ruby syntax like following code:
#
# [:def, :factorial,
# [:lambda, [:n],
# [:if, [:"=", :n, 1],
# 1,