Skip to content

Instantly share code, notes, and snippets.

// ======================================
// Gilded Rose Requirements Specification
// ======================================
// We are a small inn with a prime location in a prominent city ran by a friendly innkeeper named Allison.
// We also buy and sell only the finest goods.
// Unfortunately, our goods are constantly degrading in quality as they approach their sell by date. We
// have a system in place that updates our inventory for us.
// First an introduction to our system:
public class RxJavaTestRunner extends MockitoJUnitRunner {
// private static final TestScheduler SCHEDULER = new TestScheduler();
public RxJavaTestRunner(Class<?> klass) throws InvocationTargetException {
super(klass);
RxAndroidPlugins.getInstance().reset();
RxAndroidPlugins.getInstance().registerSchedulersHook(new RxAndroidSchedulersHook() {
@ygorbarboza
ygorbarboza / RxClickTextView.java
Last active January 20, 2016 19:52
RxJava Click
import android.content.Context;
import android.os.Build;
import android.util.AttributeSet;
import android.view.View;
import android.widget.TextView;
import rx.Observable;
import rx.subjects.PublishSubject;
/**
ext {
//Android
androidBuildToolsVersion = "23.0.1"
androidMinSdkVersion = 15
androidTargetSdkVersion = 23
androidCompileSdkVersion = 23
androidVersionCode = 1
//Libraries
@ygorbarboza
ygorbarboza / designer.html
Last active August 29, 2015 14:27
designer
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<polymer-element name="my-element">
<template>
<style>
#core_toolbar {
right: 0px;
left: 0px;