Skip to content

Instantly share code, notes, and snippets.

@lsurvila
lsurvila / CustomMatchers.java
Last active May 2, 2017 16:12 — forked from frankiesardo/CustomMatchers.java
Espresso & Brioche
/**
* Custom Espresso matchers. Includes image drawable matching.
*/
public class CustomMatchers {
public static Matcher<View> withBackground(final int resourceId) {
return new TypeSafeMatcher<View>() {
@Override
public boolean matchesSafely(View view) {
return sameBitmap(view.getContext(), view.getBackground(), resourceId);
@lsurvila
lsurvila / gist:f41dba734fa62780017c
Created October 19, 2015 21:03 — forked from pid/gist:5974342
```brew update``` and ```brew doctor```is stalling/hangs ::: SOLUTION
First, I don't know why.....but my solution at the moment
cd /usr/local
$ git remote -v
origin https://github.com/mxcl/homebrew.git (fetch)
origin https://github.com/mxcl/homebrew.git (push)
$ brew doctor -d
# hangs,stalling, no respond