Skip to content

Instantly share code, notes, and snippets.

Avatar

Mohamed MmtBkn

  • Veritone
  • Irvine, CA
View GitHub Profile
@umayr
umayr / recover-deleted-branch.sh
Created Apr 1, 2016
How to recover a deleted branch
View recover-deleted-branch.sh
## 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
cesarferreira / RxJava.md
Last active Jan 8, 2020
Party tricks with RxJava, RxAndroid & Retrolambda
View RxJava.md

View Click

Instead of the verbose setOnClickListener:

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

Filter even numbers

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