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 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 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 java.util.Calendar | |
| import java.util.Date | |
| class CalendarRange(override val start: Calendar, override val endInclusive: Calendar, val field: Int = Calendar.DAY_OF_YEAR) : | |
| ClosedRange<Calendar>, Iterable<Calendar> { | |
| override fun iterator(): Iterator<Calendar> { | |
| return CalendarIterator(start, endInclusive, field) | |
| } | |
| } |
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
| /** | |
| * The MIT License (MIT) | |
| * | |
| * Copyright (c) 2015 Circle Internet Financial | |
| * | |
| * Permission is hereby granted, free of charge, to any person obtaining a copy | |
| * of this software and associated documentation files (the "Software"), to deal | |
| * in the Software without restriction, including without limitation the rights | |
| * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| * copies of the Software, and to permit persons to whom the Software is |
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
| # run in "root" folder (e.g /home/datmusic/api.datmusic.xyz/) | |
| chown -R datmusic:www-data storage .env | |
| find storage -type f -exec chmod 664 {} \; | |
| find storage -type d -exec chmod 775 {} \; | |
| chgrp -R www-data storage .env | |
| chmod -R ug+rwx storage .env |
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
| 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 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 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 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
| /** | |
| * 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 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
| 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 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 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 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
| /* | |
| * 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 |
NewerOlder