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
package live.hms.video.media.tracks; | |
import android.content.Context; | |
import android.os.SystemClock; | |
import org.webrtc.CapturerObserver; | |
import org.webrtc.JavaI420Buffer; | |
import org.webrtc.Logging; | |
import org.webrtc.SurfaceTextureHelper; | |
import org.webrtc.VideoCapturer; |
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
{ | |
"files.autoSave": "afterDelay", | |
"editor.suggest.snippetsPreventQuickSuggestions": false, | |
"files.associations": { | |
"*.mdx": "markdown", | |
"*.md":"markdown" | |
}, | |
"[markdown]":{ | |
"editor.wordWrap": "on", | |
"editor.quickSuggestions": false, |
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
package com.example.emojigarden | |
import android.app.Application | |
import android.util.Log | |
import io.realm.Realm | |
import io.realm.mongodb.App | |
import io.realm.mongodb.AppConfiguration | |
import io.realm.mongodb.Credentials | |
import io.realm.mongodb.User |
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
sealed class Lce<T> { | |
class Loading<T> : Lce<T>() // Can't be an object since it wouldn't have the T otherwise. | |
data class Content<T>(val data : T) : Lce<T>() | |
data class Error<T>(val error : Throwable) : Lce<T>() | |
} |
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
package com.aniketkadam.heaps | |
import org.jetbrains.annotations.TestOnly | |
class MaxHeap<T : Comparable<T>> { | |
private val items: MutableList<T> = mutableListOf() | |
fun insertAll(items: List<T>): Unit = items.forEach(::insert) | |
fun insert(item: T): Unit { |
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
<?xml version="1.0" encoding="utf-8"?> | |
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:app="http://schemas.android.com/apk/res-auto" | |
xmlns:tools="http://schemas.android.com/tools" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:orientation="vertical"> | |
<androidx.recyclerview.widget.RecyclerView | |
android:id="@+id/placesRecyclerView" |
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
package com.aniketkadam.dogether.extensions | |
val <T> T.exhaustive: T | |
get() = this |
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
|
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
package com.aniketkadam.dogether.goals | |
import androidx.lifecycle.LiveData | |
import androidx.lifecycle.MediatorLiveData | |
import com.aniketkadam.dogether.auth.FIREBASE_USER_ID | |
import com.aniketkadam.dogether.di.data.PRIVATE_GOALS_LOCATION_NAME | |
import com.aniketkadam.dogether.di.data.PUBLIC_GOALS_LOCATION_NAME | |
import com.aniketkadam.dogether.goals.data.GoalsListLiveData | |
import com.google.firebase.firestore.CollectionReference | |
import com.google.firebase.firestore.QueryDocumentSnapshot |
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
rules_version = '2'; | |
function isAuthenticated(request){ | |
return request.auth != null && request.auth.uid != null | |
} | |
function isDocUidSameAsUserUid(request){ | |
return request.auth.uid == request.resource.data.uid | |
} |
NewerOlder