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 android.Manifest | |
import androidx.fragment.app.Fragment | |
import androidx.fragment.app.FragmentActivity | |
import kotlinx.coroutines.CoroutineScope | |
import kotlinx.coroutines.cancel | |
import kotlinx.coroutines.suspendCancellableCoroutine | |
import splitties.alertdialog.appcompat.alertDialog | |
import splitties.alertdialog.appcompat.coroutines.DialogButton | |
import splitties.alertdialog.appcompat.coroutines.showAndAwait | |
import splitties.alertdialog.appcompat.messageResource |
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
const admin = require('firebase-admin'); | |
const readline = require('readline'); | |
// Use your project's admin service account JSON, or you can hardcode your project ID in admin.initializeApp below | |
const serviceAccount = require('./your-project-firebase-adminsdk-abcde-1234567890.json'); | |
const rl = readline.createInterface({ | |
input: process.stdin, | |
output: process.stdout, | |
}); |
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: Push on main branch | |
on: | |
push: | |
branches: [ main ] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: |
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
const val STATE_LOADING = 0 | |
const val STATE_SUCCESS = 1 | |
const val STATE_EMPTY = 2 | |
const val STATE_ERROR = 3 | |
@Retention @IntDef(STATE_LOADING, STATE_SUCCESS, STATE_EMPTY, STATE_ERROR) annotation class LoadState |
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
/** | |
* Function to start circular tooltip queue form a fragment | |
*/ | |
fun Fragment.roundTooltipOf(tooltipItem: TooltipItem, anchor: View?) = if (anchor != null) { | |
activity?.let { TooltipHandler.prepare(it, tooltipItem, anchor, false) } | |
} else null | |
/** | |
* Function to start rounded rectangular tooltip queue form a fragment | |
*/ |
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
// TODO: add package info here | |
import android.annotation.SuppressLint | |
import android.os.Bundle | |
import android.view.LayoutInflater | |
import android.view.View | |
import android.view.ViewGroup | |
import android.view.accessibility.AccessibilityNodeInfo | |
import androidx.annotation.StringRes | |
import androidx.annotation.StyleRes |
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
//TODO: add package info here | |
import android.os.Bundle | |
import android.annotation.SuppressLint | |
import android.view.LayoutInflater | |
import android.view.View | |
import android.view.ViewGroup | |
import android.view.accessibility.AccessibilityNodeInfo | |
import android.widget.FrameLayout | |
import androidx.annotation.LayoutRes |
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
/** | |
* Uses a combination of a PageTransformer and swapping X & Y coordinates | |
* of touch events to create the illusion of a vertically scrolling ViewPager. | |
* | |
* Requires API 11+ | |
* | |
*/ | |
public class VerticalViewPager extends ViewPager { | |
public VerticalViewPager(Context context) { |
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
// TODO: put package information here | |
import android.app.Activity; | |
import android.support.v7.widget.RecyclerView; | |
import android.view.View; | |
import android.view.ViewGroup; | |
import java.util.List; | |
/** |
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
// TODO: put package information here | |
import android.animation.Animator; | |
import android.animation.ObjectAnimator; | |
import android.animation.ValueAnimator; | |
import android.content.Context; | |
import android.content.res.TypedArray; | |
import android.graphics.Bitmap; | |
import android.graphics.Canvas; | |
import android.graphics.Color; |
NewerOlder