Skip to content

Instantly share code, notes, and snippets.


Mohamed MmtBkn

  • Veritone
  • Irvine, CA
View GitHub Profile
umayr /
Created Apr 1, 2016
How to recover a deleted branch
## Pre-requisite: You have to know your last commit message from your deleted branch.
git reflog
# Search for message in the list
# a901eda HEAD@{18}: commit: <last commit message>
# Now you have two options, either checkout revision or HEAD
git checkout a901eda
# Or
git checkout HEAD@{18}
cesarferreira /
Last active Jan 8, 2020
Party tricks with RxJava, RxAndroid & Retrolambda

View Click

Instead of the verbose setOnClickListener:

RxView.clicks(submitButton).subscribe(o -> log("submit button clicked!"));

Filter even numbers

    .just(1, 2, 3, 4, 5, 6, 7, 8, 9, 10)
You can’t perform that action at this time.