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.foundation.ExperimentalFoundationApi | |
| import androidx.compose.foundation.gestures.FlingBehavior | |
| import androidx.compose.foundation.gestures.ScrollableDefaults | |
| import androidx.compose.foundation.layout.Arrangement | |
| import androidx.compose.foundation.layout.PaddingValues | |
| import androidx.compose.foundation.lazy.LazyColumn | |
| import androidx.compose.foundation.lazy.LazyItemScope | |
| import androidx.compose.foundation.lazy.LazyListScope | |
| import androidx.compose.foundation.lazy.LazyListState | |
| import androidx.compose.foundation.lazy.rememberLazyListState |
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
| // Original: https://medium.com/@espresso3389/7d39c2258723 | |
| using Google.Apis.AndroidPublisher.v3; | |
| using Google.Apis.AndroidPublisher.v3.Data; | |
| using Google.Apis.Auth.OAuth2; | |
| using Google.Apis.Services; | |
| using Google.Apis.Upload; | |
| using System; | |
| using System.Collections.Generic; | |
| using System.IO; |
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 django.shortcuts import redirect | |
| class RedirectMixin: | |
| """ | |
| Redirect to redirect_url if the test_func() method returns False. | |
| """ | |
| redirect_url = None | |
| def get_redirect_url(self): |
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 django.views.generic.edit import FormMixin | |
| # Mixin to process form by GET | |
| class GetFormMixin(FormMixin): | |
| # Override | |
| def get_form_kwargs(self): | |
| """Return the keyword arguments for instantiating the form.""" | |
| kwargs = { | |
| 'initial': self.get_initial(), | |
| 'prefix': self.get_prefix(), |