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 UIKit | |
class ChatCollectionViewFlowLayout: UICollectionViewFlowLayout { | |
private var topMostVisibleItem = Int.max | |
private var bottomMostVisibleItem = -Int.max | |
private var offset: CGFloat = 0.0 | |
private var visibleAttributes: [UICollectionViewLayoutAttributes]? |
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
extension PrimitiveSequenceType where Self: ObservableConvertibleType, Self.TraitType == SingleTrait { | |
func flatMapCompletable(_ selector: @escaping (E) -> Completable) -> Completable { | |
return self | |
.asObservable() | |
.flatMap { e -> Observable<Never> in | |
selector(e).asObservable() | |
} | |
.asCompletable() | |
} |
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.view.View | |
import android.view.ViewGroup | |
import androidx.core.view.ViewCompat | |
import androidx.core.widget.NestedScrollView | |
import androidx.fragment.app.Fragment | |
import androidx.recyclerview.widget.RecyclerView | |
import kotlinx.android.synthetic.main.fragment_data.nsvData | |
import kotlinx.android.synthetic.main.fragment_data.rvData |
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 * as firebase from 'firebase/app'; | |
import 'firebase/firestore'; | |
var firebaseConfig = { | |
// your firebase credentials | |
}; | |
// Initialize Firebase | |
firebase.initializeApp(firebaseConfig); |
OlderNewer