Skip to content

Instantly share code, notes, and snippets.

@digitalbuddha
digitalbuddha / RxIdlingResource.java
Created November 17, 2016 20:05 — forked from aahlenst/RxIdlingResource.java
IdlingResource that makes Espresso 2 wait until all RxJava 2 tasks have finished
/*
* The MIT License
*
* Copyright (c) 2016 Andreas Ahlenstorf
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
@digitalbuddha
digitalbuddha / RxIdlingResource.java
Created November 17, 2016 20:05 — forked from aahlenst/RxIdlingResource.java
IdlingResource that makes Espresso 2 wait until all RxJava 2 tasks have finished
/*
* The MIT License
*
* Copyright (c) 2016 Andreas Ahlenstorf
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
@digitalbuddha
digitalbuddha / MirroredSource.java
Last active August 29, 2016 14:22 — forked from RoryKelly/MirroredSource.java
Mirrored Source for OKIO.
import java.io.IOException;
import java.util.concurrent.atomic.AtomicBoolean;
import okio.Buffer;
import okio.Source;
import okio.Timeout;
import timber.log.Timber;
public class MirroredSource {
private final Buffer buffer = new Buffer();
@digitalbuddha
digitalbuddha / Dagger 2.md
Created February 29, 2016 20:02 — forked from lenguyenthanh/ Dagger 2.md
Dagger 2 configuration

Small gist show how to config Dagger 2 to an Android project