Skip to content

Instantly share code, notes, and snippets.

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
@vitoksmile
vitoksmile / HintAnchor.kt
Created February 11, 2025 18:04
ComposeHints
fun Modifier.hintAnchor(
state: HintAnchorState,
shape: Shape = RectangleShape,
): Modifier {
state.shape = shape
//..onGloballyPositioned
}
@Stable
class HintAnchorState internal constructor() {
@lvanasse
lvanasse / ci-arm64-01.log
Created February 11, 2025 18:04
[arm64-01] CI Log for nuttx @ 381d3fe64f4da2b09f12bd8f0cd2d1f07d86b3d3 / nuttx-apps @ fb0c1e10ded2a6fb9f066b9893662cbcc86e4646
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/
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
@thetafferboy
thetafferboy / aa-unanswered.js
Last active February 11, 2025 18:21
AlsoAsked Unanswered Questions (Screaming Frog)
// AlsoAsked Unanswered Questions
// Note: Best used with Screaming Frog "List" mode and given a list of informational / blog pages
//
//
// IMPORTANT:
// You will need to supply your ChatGPT and AlsoAsked API key below.
// These will be stored as part of your SEO Spider configuration in plain text.
// Also be mindful if sharing this script that you will be sharing your API key
@choco-bot
choco-bot / 1.RegistrySnapshot.xml
Created February 11, 2025 18:03
ontopreplica v3.5.1.20170427 - Passed - Package Tests Results
<?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="Unknown" displayName="OnTopReplica" displayVersion="3.4">
<RegistryView>Registry64</RegistryView>
<KeyPath>HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\OnTopReplica</KeyPath>
<DefaultValue />
<InstallLocation><![CDATA["C:\Users\vagrant\AppData\Local\OnTopReplica"]]></InstallLocation>
<UninstallString><![CDATA["C:\Users\vagrant\AppData\Local\OnTopReplica\OnTopReplica-Uninstall.exe"]]></UninstallString>
package main
import (
"bufio"
"flag"
"fmt"
"os"
"os/exec"
"strings"
)
gray_image = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
hist = cv2.calcHist([gray_image], [0], None, [256], [0, 256])
import os
import subprocess
import sys
def run_cmd(cmd):
try:
result = subprocess.run(cmd, capture_output=True, text=True, check=True)
output = result.stdout.strip()
error = result.stderr.strip()
{
"certified": false,
"deleted": false,
"docker_image_digest": "sha256:edf45b99bc454d160aec04e50efaa43b00d9f07c408ae09a2f7eb4fa75fc00b6",
"docker_image_id": "sha256:7141b65bcbd3e3b0bd624fb5b4df68dfe6245dff39b0b4392e3c7c0dd1847cb2",
"image_id": "sha256:edf45b99bc454d160aec04e50efaa43b00d9f07c408ae09a2f7eb4fa75fc00b6",
"parsed_data": {
"architecture": "amd64",
"created": "2025-02-11 17:31:21.326151406 +0000 UTC",
"image_id": "sha256:edf45b99bc454d160aec04e50efaa43b00d9f07c408ae09a2f7eb4fa75fc00b6",