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
@Preview | |
@Composable | |
private fun SnapshotFlowPreview() { | |
var someState by remember { mutableStateOf("") } | |
var someOtherState by remember { mutableStateOf("") } | |
val onSomeStateChange: (String) -> Unit = { newState -> | |
someOtherState = newState | |
} | |
// Replace this line with the commented one. |
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
class ForegroundServiceLauncher(private val serviceClass: Class<out Service>) { | |
private var isStarting = false | |
private var shouldStop = false | |
private var isCreated = false | |
@Synchronized | |
fun startService(context: Context, block: Intent.() -> Unit = {}) { | |
if (!isCreated) { | |
isStarting = true |
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
#!/bin/sh | |
# Save input for use in git lfs and for changelog generation. | |
stdin_input=`cat` | |
command -v git-lfs >/dev/null 2>&1 || { echo >&2 "\nThis repository is configured for Git LFS but 'git-lfs' was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting the 'pre-push' file in the hooks directory (set by 'core.hookspath'; usually '.git/hooks').\n"; exit 2; } | |
echo "$stdin_input" | git lfs pre-push "$@" | |
zero=$(git hash-object --stdin </dev/null | tr '[0-9a-f]' '0') |
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 android.content.Context | |
import android.util.AttributeSet | |
import android.view.View | |
import android.widget.FrameLayout | |
import androidx.coordinatorlayout.widget.CoordinatorLayout | |
import androidx.core.view.NestedScrollingChildHelper | |
import androidx.core.view.NestedScrollingParent2 | |
import androidx.core.view.ViewCompat | |
import androidx.recyclerview.widget.LinearLayoutManager |
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
customInputConnection, | |
customSymbols, | |
customSymbolsForCMSymbolKey, | |
customSymbolsForPeriodKey, | |
disableAllToolbarItems, | |
disableAmbiguousMode, | |
disableAutoCorrection, | |
disableBackspaceKey, | |
disableCandidateExpand, | |
disableClipboard, |
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
#root.root {--tabs-activated-shadow: box-shadow: 0 0 1px rgba(128, 128, 142, 0.9);;} | |
#root { | |
--tabs-font: 1rem -apple-system; | |
--tabs-count-font: .625rem -apple-system; | |
--bookmarks-bookmark-font: .875rem -apple-system; | |
--bookmarks-folder-font: 9pt -apple-system; | |
--nav-btn-width: 30px; | |
--nav-btn-height: 30px; | |
--tabs-inner-gap: 8px; | |
} |
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
#root.root {--tabs-font: 1rem -apple-system;} | |
#root.root {--tabs-indent: 12px;} | |
#root.root {--tabs-inner-gap: 5px;} | |
#root.root {--tabs-count-font: 0.625rem -apple-system;} | |
#root.root {--general-border-radius: 8px;} | |
#root.root {--d-fast: 0.1s;} |
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
/* | |
How to use this CSS: | |
0. Install the Sidebery extension: https://addons.mozilla.org/en-US/firefox/addon/sidebery/. | |
1. In Sidebery settings: | |
a. Set the title preface must as "[S] " (without quotes). | |
This is used by CSS rules below to identify when Sidebery is active. | |
b. Set 'Tabs tree structure' to false -- this stylesheet doesn't adapt to | |
multiple tab levels, but feel free to tweak it! | |
c. Copy and paste the "SIDEBERY STYLES" section below as a custom |
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 android.widget.NumberPicker | |
import android.widget.Toast | |
import androidx.compose.runtime.Composable | |
import androidx.compose.ui.Modifier | |
import androidx.compose.ui.platform.LocalContext | |
import androidx.compose.ui.semantics.semantics | |
import androidx.compose.ui.semantics.setText | |
import androidx.compose.ui.tooling.preview.Preview | |
import androidx.compose.ui.viewinterop.AndroidView |
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
[ | |
{ | |
"quote": "Life isn’t about getting and having, it’s about giving and being.", | |
"author": "Kevin Kruse" | |
}, | |
{ | |
"quote": "Whatever the mind of man can conceive and believe, it can achieve.", | |
"author": "Napoleon Hill" | |
}, | |
{ |
NewerOlder