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
//rxjava-challenge | |
class City(val id: Int, val name:String) | |
class Province(val id: Int ,val name:String) | |
fun getProvinces(): Observable<List<Province>> | |
fun getCityByProvinceId(val provinceId: Int): Observable<List<City>> |
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 City(val id: Int, val name:String) | |
class Province(val id: Int ,val name:String) | |
fun getProvinces(): Observable<List<Province>> | |
fun getCityByProvinceId(val provinceId: Int): Observable<List<City>> |
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
{ | |
"name": "ارزیابی موتور جستجوی", | |
"states": [ | |
{ | |
"name": "evaluating", | |
"state_type_id": 1 | |
}, | |
{ | |
"name": "final", | |
"state_type_id": 4 |
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
@startuml | |
hide empty description | |
title translation | |
[*] --> A | |
A -> B : wordTranslation \n صلاحیت 10 \n reward 1000 | |
A -> B : wordTranslation \n صلاحیت 10 \n reward 1000 | |
B -> C : sentenceTranslation | |
C -> D : textTranslation | |
D --> [*] | |
D : enter event ----> sendTranslatedAnswer |
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
{ | |
"name": "translation", | |
"states": [ | |
{ | |
"name": "A", | |
"state_type_id": 1 | |
}, | |
{ | |
"name": "B", | |
"state_type_id": 3, |
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
import org.junit.Test; | |
import org.junit.runner.RunWith; | |
import org.junit.runners.Parameterized; | |
import java.util.Arrays; | |
import java.util.Collection; | |
import static org.junit.Assert.assertEquals; |
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
keytool -list -v -keystore "%USERPROFILE%\.android\debug.keystore" -alias androiddebugkey -storepass android -keypass android |
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
public class MovieDetailViewModel extends BaseViewModel { | |
PublishProcessor<Boolean> retryNetworkRequest = PublishProcessor.create(); | |
MovieInteractor movieInteractor; | |
BehaviorProcessor<MovieDetailViewState> baz = null; | |
@Inject | |
public MovieDetailViewModel(MovieInteractor movieInteractor) { |
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
public class MovieDetailViewModel extends BaseViewModel { | |
LiveData<MovieDetailViewState> baz = new MutableLiveData(); | |
MutableLiveData<Void> retryNetworkRequest = new MutableLiveData(); | |
MovieInteractor movieInteractor; | |
@Inject | |
public MovieDetailViewModel(MovieInteractor movieInteractor) { | |
this.movieInteractor = movieInteractor; |
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
#!/bin/bash | |
#hi | |
SAVEIFS=$IFS | |
IFS=$(echo -en "\n\b") | |
for rootFolder in */ ; do | |
if [ -d $rootFolder"build" ]; then | |
echo "do you want to delete build folders of \"${rootFolder%?}\" project?" | |
read ans | |
if [ "$ans" = "y" ] || [ "$ans" = "Y" ]; then |