This file contains 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 android.os.Bundle; | |
import android.support.annotation.NonNull; | |
import android.support.design.widget.TextInputLayout; | |
import android.support.v4.widget.NestedScrollView; | |
import android.support.v7.app.AppCompatActivity; | |
import android.support.v7.widget.AppCompatButton; | |
import android.support.v7.widget.AppCompatEditText; | |
import android.text.TextUtils; | |
import android.util.Log; | |
import android.view.View; |
This file contains 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 io.reactivex.Observable | |
import io.reactivex.schedulers.TestScheduler | |
import org.junit.Test | |
import java.util.* | |
import java.util.concurrent.TimeUnit | |
class ExampleUnitTest { | |
@Test | |
@Throws(Exception::class) |
This file contains 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 io.reactivex.Observable | |
import io.reactivex.schedulers.TestScheduler | |
import org.junit.Test | |
import java.util.concurrent.TimeUnit | |
class MergeUnitTest { | |
@Test | |
@Throws(Exception::class) | |
fun mergeSimple() { |
This file contains 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
var tasksList: RealmList<Tasks> | |
tasksList = RealmList() | |
getPendingTasks(3) | |
.flatMapIterable { it -> it } | |
.concatMap { task -> | |
getPendingSubTasks(task.id) | |
.doOnNext { | |
//Here we are binding subtasks to individual task item | |
bindChildTasks(it, task) |
This file contains 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
dependencies { | |
//RxJava2 | |
implementation 'io.reactivex.rxjava2:rxandroid:2.1.0' | |
implementation 'io.reactivex.rxjava2:rxjava:2.2.3' | |
implementation 'io.reactivex.rxjava2:rxkotlin:2.2.0' | |
//Glide | |
implementation 'com.github.bumptech.glide:glide:4.8.0' | |
kapt "androidx.lifecycle:lifecycle-compiler:2.1.0-alpha01" |
This file contains 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
void main(){ | |
print("This is my first course in Urdu 1."); | |
print("This is my first course in Urdu 2."); | |
print("This is my first course in Urdu 3."); | |
print("This is my first course in Urdu 4."); | |
} |
This file contains 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
void main() { | |
var myString1 = "My String 1"; | |
var myString2 = "My String 2"; | |
var myString3; | |
//myString3 = myString1 + myString2; | |
//myString3 = 'My String 1' '\nMy String 2'; | |
This file contains 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
void main() { | |
var c1 = 89; | |
var c2 = 50; | |
print("Addition Result: ${c1+c2}"); | |
print("Subtraction Result: ${c1-c2}"); | |
print("Multiplication Result: ${c1*c2}"); | |
print("Division Result: ${c1/c2}"); | |
This file contains 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
void main() { | |
var c1 = 10; | |
var c2 = 5; | |
var c3 = 10; | |
print("Is c1 Greater Than c2? Ans: ${c1 > c2}\n"); | |
print("Is c1 Greater Than c2? Ans: ${c1 < c2}\n"); | |
print("Is c2 Greater Than c1? Ans: ${c2 > c1}\n"); |
This file contains 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
void main() { | |
List my_list = ["s1","s2","s3","s4"]; | |
//Size 4 | |
var my_element1 = my_list[3]; | |
print(my_element1); | |
OlderNewer