Skip to content

Instantly share code, notes, and snippets.

View therajanmaurya's full-sized avatar
🎯
Focusing

Rajan Maurya therajanmaurya

🎯
Focusing
View GitHub Profile
This file has been truncated, but you can view the full file.
```json
data:image/png;base64,/9j/4Rj5RXhpZgAASUkqAAgAAAAPAA4BAgAgAAAAwgAAAA8BAgAgAAAA4gAAABABAgAgAAAAAgEA
ABIBAwABAAAAAQAAABoBBQABAAAAIgEAABsBBQABAAAAKgEAACgBAwABAAAAAgAAADEBAgAgAAAA
MgEAADIBAgAUAAAAUgEAABMCAwABAAAAAgAAACACBAABAAAAAAAAACECBAABAAAAAAAAACICBAAB
AAAAAAAAACMCBAABAAAAAAAAAGmHBAABAAAAZgEAAMQCAAAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgAFhpYW9taSAgICAgICAgICAgICAgICAgICAgICAgICAASE0gTk9URSAgICAgICAg
ICAgICAgICAgICAgICAgIABIAAAAAQAAAEgAAAABAAAATGVnYWN5Q2FtZXJhAAAAAAAAAAAAAAAA
AAAAAAAAAAAyMDE3OjA5OjMwIDEzOjM5OjQ0ABYAmoIFAAEAAAB0AgAAnYIFAAEAAAB8AgAAIogD
AAEAAAAAAAAAJ4gDAAEAAACvAAAAAJAHAAQAAAAwMjIwA5ACABQAAACEAgAABJACABQAAACYAgAA
AZEHAAQAAAABAgMABJIKAAEAAACsAgAAB5IDAAEAAAABAAAACJIDAAEAAAD/AAAACZIDAAEAAAAA
{
"count": 15,
"messages": [
{"body": "hello",
"username": "john-t",
"Name": "John",
"image-url": "http://haptikdev.s3.amazonaws.com/content/06138bc5af6023646ede0e1f7c1eac75d64dd2f45a516f8746413832a94f75f3.jpeg",
"message-time": "2016-01-01T05:30:34"
},
{"body": "Hi",
@therajanmaurya
therajanmaurya / introrx.md
Created June 24, 2016 09:54 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
@therajanmaurya
therajanmaurya / DeleteModelInBatchOnSubscribe.java
Created June 23, 2016 11:43 — forked from trajakovic/DeleteModelInBatchOnSubscribe.java
Android DbFlow Update/Delete/Save models in batch with RxJava - ReactiveX with DbFlow
import android.database.Cursor;
import android.support.annotation.NonNull;
import com.raizlabs.android.dbflow.runtime.DBTransactionInfo;
import com.raizlabs.android.dbflow.runtime.TransactionManager;
import com.raizlabs.android.dbflow.runtime.transaction.BaseTransaction;
import com.raizlabs.android.dbflow.runtime.transaction.QueryTransaction;
import com.raizlabs.android.dbflow.runtime.transaction.TransactionListener;
import com.raizlabs.android.dbflow.sql.builder.ConditionQueryBuilder;
import com.raizlabs.android.dbflow.sql.language.Delete;
@therajanmaurya
therajanmaurya / proguard-rules.pro
Created June 21, 2016 12:22
proguard rules for roboguice, greendao, retrofit, support design, picasso
-target 1.6
-dontusemixedcaseclassnames
-dontskipnonpubliclibraryclasses
-dontpreverify
-verbose
-optimizations !code/simplification/arithmetic,!code/simplification/cast,!field/*,!class/merging/*
-optimizationpasses 5
-keep public class * extends android.app.Activity
-keep public class * extends android.app.Application
@therajanmaurya
therajanmaurya / Water Jug Problem
Created August 31, 2015 09:23
Water Jug Problem
import java.util.Scanner;
public class waterjug {
Scanner scan=new Scanner(System.in);
int maxA,maxB,desA,desB,a,b;
public static void main(String args[])
{
System.out.println("*** Water Jug ***\n\n");