Skip to content

Instantly share code, notes, and snippets.

@SiddheshShetye
SiddheshShetye / CoordinatedImageView.java
Created October 10, 2015 16:54 — forked from rodrigohenriques/CoordinatedImageView.java
Used to collapse image view anchored at appbar
package com.github.rodrigohenriques.samples.customview;
import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import android.annotation.TargetApi;
import android.content.Context;
import android.graphics.Matrix;
import android.graphics.Rect;
import android.graphics.RectF;
import android.os.Build;
/*
* Copyright 2014 Chris Banes
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@SiddheshShetye
SiddheshShetye / introrx.md
Created September 23, 2015 11:07 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing

The introduction to Reactive Programming you've been missing

(by @andrestaltz)

So you're curious in learning this new thing called Reactive Programming, particularly its variant comprising of Rx, Bacon.js, RAC, and others.

Learning it is hard, even harder by the lack of good material. When I started, I tried looking for tutorials. I found only a handful of practical guides, but they just scratched the surface and never tackled the challenge of building the whole architecture around it. Library documentations often don't help when you're trying to understand some function. I mean, honestly, look at this:

Rx.Observable.prototype.flatMapLatest(selector, [thisArg])

Projects each element of an observable sequence into a new sequence of observable sequences by incorporating the element's index and then transforms an observable sequence of observable sequences into an observable sequence producing values only from the most recent observable sequence.

@SiddheshShetye
SiddheshShetye / RoundImageView.java
Last active August 29, 2015 14:01
RoundImageView is derived from RoundedCornerNetworkImageView which is not dependent on NetworkImageView From Volley.
/*
* Copyright (C) 2013 Siddhesh S Shetye
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@SiddheshShetye
SiddheshShetye / RoundedCornerNetworkImageView.java
Last active January 25, 2017 22:23
NetworkImageView Is a Custom ImageView class.Provides all the functionalities of NetworkImageView from Volley. In addition to those this class provides functionality of rounded edges for the ImageView with gradient effect.This Class is dependent on StreamDrawable from RomainGuy in his Image With Rounded Corners Demo but with little modifications.
/*
* Copyright (C) 2013 Siddhesh S Shetye
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software