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 androidx.compose.animation.core.Animatable | |
import androidx.compose.animation.core.AnimationEndReason | |
import androidx.compose.animation.core.AnimationSpec | |
import androidx.compose.animation.core.AnimationVector2D | |
import androidx.compose.animation.core.FiniteAnimationSpec | |
import androidx.compose.animation.core.Spring | |
import androidx.compose.animation.core.VectorConverter | |
import androidx.compose.animation.core.VisibilityThreshold | |
import androidx.compose.animation.core.spring | |
import androidx.compose.runtime.getValue |
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 sqlite3 | |
from tqdm import tqdm | |
from multiprocessing import cpu_count, Pool | |
def get_db(db_path): | |
conn = sqlite3.connect(db_path) | |
cursor = conn.cursor() | |
return cursor | |
def is_relevant_section_type(item): |
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
/** | |
* Returns a [Shape] for BottomSheet's current [sheetState]. | |
* @return gradually un-rounding/rounding shape when [sheetState] is changing to [ModalBottomSheetValue.Expanded] or [ModalBottomSheetValue.HalfExpanded]. | |
*/ | |
@Composable | |
internal fun shape( | |
sheetState: ModalBottomSheetState, | |
radius: Dp = 16.0.dp, | |
): Shape { | |
val offsetFraction by remember { |
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 compose.CurrencyAmountMask | |
import androidx.compose.foundation.layout.Box | |
import androidx.compose.foundation.layout.fillMaxSize | |
import androidx.compose.foundation.layout.fillMaxWidth | |
import androidx.compose.foundation.text.BasicTextField | |
import androidx.compose.foundation.text.KeyboardOptions | |
import androidx.compose.material3.LocalTextStyle | |
import androidx.compose.runtime.Composable | |
import androidx.compose.runtime.getValue |
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 argparse | |
import json | |
from guessit import guessit | |
from guessit.jsonutils import GuessitEncoder | |
from pprint import pp, pprint | |
from tqdm import tqdm | |
from multiprocessing import cpu_count, Pool | |
import random | |
import logging | |
import sys |
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
from os import environ | |
from deezer import Deezer | |
from pathlib import Path | |
from deemix import generateDownloadObject | |
from deemix.__main__ import LogListener | |
from deemix.utils import getBitrateNumberFromText | |
from deemix.settings import load as loadSettings | |
from deemix.downloader import Downloader |
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
/* | |
* Copyright (C) 2021, Alashov Berkeli | |
* All rights reserved. | |
*/ | |
package tm.alashow.common.compose.ui | |
import androidx.compose.animation.core.Animatable | |
import androidx.compose.foundation.gestures.detectTransformGestures | |
import androidx.compose.foundation.layout.Box | |
import androidx.compose.runtime.Composable |
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
@Composable | |
private fun App() { | |
val isDarkMode = isSystemInDarkTheme() | |
val (darkMode, setDarkMode) = remember { mutableStateOf(isDarkMode) } | |
AppTheme(darkTheme = darkMode) { | |
Switch(checked = darkMode, onCheckedChange = setDarkMode) | |
Text("${AppTheme.colors.onSurfaceInputBackground.toArgb()}") | |
} | |
} |
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
[driva-0-sa] | |
type = drive | |
scope = drive | |
team_drive = xyz0 | |
root_folder_id = xyz0 | |
service_account_file = path | |
[driva-1-sa] | |
type = drive | |
scope = drive |
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
/** | |
* The T generic is unused for some classes but since it is sealed and useful for Success and Fail, | |
* it should be on all of them. | |
* | |
* Complete: Success, Fail | |
* ShouldLoad: Uninitialized, Fail | |
*/ | |
sealed class Async<out T>(val complete: Boolean, val shouldLoad: Boolean) { | |
open operator fun invoke(): T? = null |
NewerOlder