Skip to content

Instantly share code, notes, and snippets.

Giovanny Velez gavelez

Block or report user

Report or block gavelez

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
gavelez /
Created Aug 20, 2017 — 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)
import java.util.List;
import java.util.Stack;
import java.util.Vector;
* See the license below. Obviously, this is not a Javascript credit card number
* generator. However, The following class is a port of a Javascript credit card
* number generator.
* @author robweber
gavelez / CollectionWrapper.kt
Last active Nov 28, 2019
Use of Generics with Gson
View CollectionWrapper.kt
package com.example.util
import com.example.MyList
class CollectionWrapper<T> {
var type: Class<T>
var list: MyList<T>
constructor(valueType: Class<T>, list: MyList<T>) {
You can’t perform that action at this time.