This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <? | |
| trait FormElements { | |
| protected function getLabel($text, $for) { | |
| return "<label for='$for'>$text</label>"; | |
| } | |
| protected function getTextInput($name) { | |
| return "<input type='text' name='$name'/>"; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.example.NestedScrollViewScrollToAction; | |
| import android.graphics.Rect; | |
| import android.support.design.widget.CoordinatorLayout; | |
| import android.support.test.espresso.PerformException; | |
| import android.support.test.espresso.UiController; | |
| import android.support.test.espresso.ViewAction; | |
| import android.support.test.espresso.matcher.ViewMatchers.Visibility; | |
| import android.support.test.espresso.util.HumanReadables; | |
| import android.support.v4.widget.NestedScrollView; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class PublishSubjectMergeUsage { | |
| PublishSubject<List<Car>> cars = PublishSubject.create(...); //Car has some Id | |
| PublishSubject<List<Wheel>> wheels = PublishSubject.create(...); //Wheel have carId which is | |
| public Observable<List<CarWithWheels>> test(Observable<List<Car>> cars, Observable<List<Wheel>> wheels) { | |
| return Observable.combineLatest( | |
| cars.flatMapIterable(c -> c), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class User { | |
| public int id; | |
| public User(int id) { | |
| this.id = id; | |
| } | |
| } |