Skip to content

Instantly share code, notes, and snippets.


Ken Van Hoeylandt KenVanHoeylandt

View GitHub Profile
KenVanHoeylandt /
Created Apr 17, 2018 — forked from cbeyls/
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
View gist:72a8a6ebe0ccd3cfd8573ff17c48b024
### Keybase proof
I hereby claim:
* I am kenvanhoeylandt on github.
* I am kenvanhoeylandt ( on keybase.
* I have a public key ASBJbi0m2-2IPdNszByqbjObBSaGRHJoQOH40pjqeE-Vwwo
To claim this, I am signing this object:
KenVanHoeylandt /
Created Mar 29, 2017
Terraform and Docker with GitLab and Jenkins instances
# Bind Docker socket to port
socat -d TCP-LISTEN:2376,range=,reuseaddr,fork UNIX:/var/run/docker.sock
View MatterMost Theme
// Source:
public class DisableAnimationsRule implements TestRule {
private Method mSetAnimationScalesMethod;
private Method mGetAnimationScalesMethod;
private Object mWindowManagerObject;
public DisableAnimationsRule() {
try {
Class<?> windowManagerStubClazz = Class.forName("android.view.IWindowManager$Stub");
Method asInterface = windowManagerStubClazz.getDeclaredMethod("asInterface", IBinder.class);
KenVanHoeylandt /
Created Apr 5, 2016 — forked from chemouna/
Some assertions to help with testing recyclerview with espresso.
import android.view.View;
import java.util.ArrayList;
import org.hamcrest.Matcher;
import org.junit.Assert;
KenVanHoeylandt /
Created Apr 3, 2016
OpenCV installation for OS X

Building and installing OpenCV on OS X for your Java project:

  • Download OpenCV
  • Make sure JAVA_HOME is set
  • Make sure ant is installed
  • build OpenCV:
    • mkdir build
    • cd build
    • cmake -G "Unix Makefiles" ..
    • make -j8
KenVanHoeylandt /
Last active Apr 1, 2016
ADB command that proxies to all connected devices
# from
# Script adb+
# Usage
# You can run any command adb provide on all your current devices
# ./adb+ <command> is the equivalent of ./adb -s <serial number> <command>
# Examples
# ./adb+ version
# ./adb+ install apidemo.apk
KenVanHoeylandt / build.gradle
Last active Jan 18, 2022
Gradle auto-installing pre-commit hook
View build.gradle
apply from: rootProject.file('gradle/install-git-hooks.gradle')
KenVanHoeylandt /
Created Mar 30, 2016 — forked from passsy/
ArrayAdapter for 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>