Discover gists
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 | |
fun HintOverlay( | |
anchors: () -> List<HintAnchorState>, | |
) { | |
//... | |
BoxWithConstraints( | |
modifier = Modifier | |
.fillMaxSize() | |
.overlayBackground(anchors) | |
) { |
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
@Stable | |
class HintAnchorState internal constructor( | |
internal val hint: Hint, | |
) { | |
//...other states here | |
} | |
@Composable | |
fun rememberHintAnchorState(hint: Hint): HintAnchorState { | |
return remember(hint) { |
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
Pipeline still running ... | |
PipelineRun is still running: Tasks Completed: 45 (Failed: 0, Cancelled 0), Incomplete: 2, Skipped: 7 | |
[get-pr-number : parse-pr-url] + echo -n 5178 | |
[get-pr-number : parse-pr-url] + tee /tekton/results/git_pr_number | |
[get-pr-number : parse-pr-url] 5178 | |
[acquire-lease : create-lease] + calculate_duration_in_seconds 90m | |
[acquire-lease : create-lease] + '[' m == m ']' | |
[acquire-lease : create-lease] + TOTAL_DURATION_IN_SECONDS=5400 | |
[acquire-lease : create-lease] + export TOTAL_DURATION_IN_SECONDS |
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
@Stable | |
class Hint internal constructor() { | |
internal var content: @Composable () -> Unit by mutableStateOf({}) | |
} | |
@Composable | |
fun rememberHint(content: @Composable () -> Unit): Hint { | |
return remember { | |
Hint().also { it.content = content } |
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
<?xml version="1.0" encoding="utf-8"?> | |
<registrySnapshot xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | |
<user>S-1-5-21-2270195762-3335344054-2709297393-1000</user> | |
<keys> | |
<key installerType="InnoSetup" displayName="SVG Explorer Extension 0.1.1" displayVersion="0.1.1"> | |
<RegistryView>Registry64</RegistryView> | |
<KeyPath>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{4CA20D9A-98AC-4DD6-9C16-7449F29AC08A}_is1</KeyPath> | |
<DefaultValue /> | |
<InstallLocation><![CDATA[C:\Program Files\Dotz Softwares\SVG Explorer Extension\]]></InstallLocation> | |
<UninstallString><![CDATA["C:\Program Files\Dotz Softwares\SVG Explorer Extension\unins000.exe" /SILENT]]></UninstallString> |
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
Log uploaded on Tuesday, February 11, 2025, 12:04:33 PM | |
Loaded mods: | |
Harmony(brrainz.harmony)[mv:2.3.1.0]: 0Harmony(2.3.3), HarmonyMod(2.3.1) | |
BetterLoading(me.samboycoding.betterloading.dev)[mv:3.5.0.0]: BetterLoading(2.3.0), Tomlet(3.1.3) | |
Core(Ludeon.RimWorld): (no assemblies) | |
Royalty(Ludeon.RimWorld.Royalty): (no assemblies) | |
Ideology(Ludeon.RimWorld.Ideology): (no assemblies) | |
Biotech(Ludeon.RimWorld.Biotech): (no assemblies) | |
Anomaly(Ludeon.RimWorld.Anomaly): (no assemblies) | |
Big and Small - Framework(RedMattis.BetterPrerequisites): BetterPrerequisites(1.0.0), BSXeno(1.0.0), RedHealth(1.0.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
internal fun Modifier.overlayBackground( | |
anchors: () -> List<HintAnchorState>, | |
): Modifier = composed { | |
val backgroundBrush = LocalHintOverlayBrush.current | |
val backgroundColor = LocalHintOverlayColor.current | |
val layoutDirection = LocalLayoutDirection.current | |
val density = LocalDensity.current | |
drawWithCache { | |
// Prepare path for background |
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
fun Modifier.hintAnchor( | |
state: HintAnchorState, | |
shape: Shape = RectangleShape, | |
): Modifier { | |
state.shape = shape | |
//..onGloballyPositioned | |
} | |
@Stable | |
class HintAnchorState internal constructor() { |
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
Script started on 2025-02-11 17:45:36+00:00 [COMMAND="/home/ludovic/nuttx-release/run-job.sh arm64-01" <not executed on terminal>] | |
Now running https://github.com/lupyuen/nuttx-release/blob/main/run-job.sh | |
Called by https://github.com/lupyuen/nuttx-release/blob/main/run-ci.sh | |
+ job=arm64-01 | |
+ neofetch | |
.-/+oossssoo+/-. | |
`:+ssssssssssssssssss+:` | |
-+ssssssssssssssssssyyssss+- | |
.ossssssssssssssssssdMMMNysssso. | |
/ssssssssssshdmmNNmmyNMMMMhssssss/ |
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 os | |
os.environ["TF_CPP_MIN_LOG_LEVEL"] = "2" | |
import argparse | |
import numpy as np | |
from pyteomics import mgf, mass | |
from dataclasses import dataclass, asdict | |
import tensorflow as tf | |
import tensorflow.keras as k |