Skip to content

Instantly share code, notes, and snippets.


Rehan Kodekar mkodekar

View GitHub Profile
mkodekar / gist:203b40157bd3e790ecca5a4832ccf051
Created Dec 14, 2016 — forked from prime31/gist:5675017
Simple PHP script showing how to send an Android push notification. Be sure to replace the API_ACCESS_KEY with a proper one from the Google API's Console page. To use the script, just call scriptName.php?id=THE_DEVICE_REGISTRATION_ID
View gist:203b40157bd3e790ecca5a4832ccf051
// API access key from Google API's Console
$registrationIds = array( $_GET['id'] );
// prep the bundle
$msg = array
mkodekar / gist:a7da00292a6f2b133329f1a607b60368
Created Oct 19, 2016 — forked from dodyg/gist:5823184
Kotlin Programming Language Cheat Sheet Part 1
View gist:a7da00292a6f2b133329f1a607b60368


Kotlin is a new programming language for the JVM. It produces Java bytecode, supports Android and generates JavaScript. The latest version of the language is Kotlin M5.3

Kotlin project website is at

All the codes here can be copied and run on Kotlin online editor.

Let's get started.

mkodekar /
Created Sep 20, 2016 — forked from cesarferreira/
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)