Skip to content

Instantly share code, notes, and snippets.

Marvin Ramin Mauin

Block or report user

Report or block Mauin

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am Mauin on github.
  • I am mauin (https://keybase.io/mauin) on keybase.
  • I have a public key whose fingerprint is 501C 4B1B C971 E11F 4CB9 4612 FA75 6A4D EB2D C04F

To claim this, I am signing this object:

@Mauin
Mauin / commit-msg
Created Sep 7, 2016
COURAGE - commit-msg git hook
View commit-msg
#!/bin/sh
#
# Prepend the branch name to the commit message
#
# Add this file as [repo]/.git/hooks/prepare-commit-msg
#
# A couple notes:
# 1. The file must be executable (chmod +x commit-msg)
# 2. This works on a per-repo basis (unless you follow this guide https://coderwall.com/p/jp7d5q/create-a-global-git-commit-hook)
@Mauin
Mauin / EspressoProgressbar.md
Last active Mar 29, 2018
Progressbar that is testable with Espresso
View EspressoProgressbar.md

Create the main Progressbar wrapper in your main source code. Use it instead of the android.widget.Progressbar as it will just forward all calls to the default Progressbar.

In your androidTest package create the Progressbar class in the exact same package as you did in the main source code. This way all your UI tests will call this ProgressBar instead of the default one. And since the modifications prevent the Progressbar from showing and animating, the UI thread won't be blocked and Espresso can continue the test.

You can’t perform that action at this time.