Skip to content

Instantly share code, notes, and snippets.

View KenVanHoeylandt's full-sized avatar

Ken Van Hoeylandt KenVanHoeylandt

View GitHub Profile
@KenVanHoeylandt
KenVanHoeylandt / KotlinFunctions.md
Created April 17, 2018 10:17 — forked from cbeyls/KotlinFunctions.md
Comparison of Kotlin functions: also, apply, let, run, with
Function Function type Target passed as Returns
also Extension it Target
apply Extension this Target
let Extension it Block return value
run Extension this Block return value
with Regular this Block return value
@KenVanHoeylandt
KenVanHoeylandt / RecyclerViewAssertions.java
Created April 5, 2016 08:18 — forked from chemouna/RecyclerViewAssertions.java
Some assertions to help with testing recyclerview with espresso.
import android.support.test.espresso.NoMatchingViewException;
import android.support.test.espresso.ViewAssertion;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import com.google.common.truth.Truth;
import java.util.ArrayList;
import org.hamcrest.Matcher;
import org.junit.Assert;
@KenVanHoeylandt
KenVanHoeylandt / ArrayAdapter.java
Created March 30, 2016 10:13 — forked from passsy/ArrayAdapter.java
ArrayAdapter for RecyclerView
import android.support.v7.widget.RecyclerView;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
/**
* Created by pascalwelsch on 04.07.14.
*/
public abstract class ArrayAdapter<T, VH extends RecyclerView.ViewHolder>
@KenVanHoeylandt
KenVanHoeylandt / Android REST Controller with Cache-Control
Last active March 3, 2016 09:16 — forked from polbins/README.md
Android Response Caching using Retrofit 1.9 + OkHttp 2.2
#### Android REST Controller with Cache-Control
Android REST Controller with Simple Cache Control Headers using
Retrofit 1.9.0 + OkHttp 2.2.0
@KenVanHoeylandt
KenVanHoeylandt / introrx.md
Created February 11, 2016 16:13 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing