Skip to content

Instantly share code, notes, and snippets.

@vitoksmile
vitoksmile / HintOverlay.kt
Last active February 11, 2025 18:01
ComposeHints
val LocalHintOverlayColor = staticCompositionLocalOf<Color> { Color(0x44000000) }
val LocalHintOverlayBrush = staticCompositionLocalOf<Brush?> { null }
@Composable
fun HintOverlay() {
Popup {
Box(
modifier = Modifier
.fillMaxSize()
@mischmaesch
mischmaesch / .gitignore
Created February 11, 2025 17:58 — forked from AkdM/.gitignore
Daily backup Home Assistant configuration into a git repository
# You can whitelist files/folders with !, those will not be ignored.
# Everything that starts with a / are for root elements
# ignore
/custom_components/
/zigbee2mqtt/log
/zigbee2mqtt/state.json
/home-assistant_v2.* # Exclude Home Assistant history-related database. Make sure to enable git LFS if you don't exclude that, since those files can go easily over 100MB
/home-assistant.log*
/.ssh/
# Write your code here :-)
Now, lets add the lights
Click the button to cycle through the list and change the color
import time
import board
import neopixel
from digitalio import DigitalInOut, Direction, Pull
switch = DigitalInOut(board.D3)
@choco-bot
choco-bot / FilesSnapshot.xml
Created February 11, 2025 17:58
python-x86_32 v3.5.2.20170425 - Failed - Package Tests Results
<?xml version="1.0" encoding="utf-8"?>
<fileSnapshot xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<files>
<file path="C:\ProgramData\chocolatey\lib\python-x86_32\python-x86_32.nupkg" checksum="71AA7AAD742E7CA6A70560A2392A47DA" />
<file path="C:\ProgramData\chocolatey\lib\python-x86_32\python-x86_32.nuspec" checksum="4C61CB4B98393EBC4A834F4D4EA84176" />
<file path="C:\ProgramData\chocolatey\lib\python-x86_32\tools\chocolateyInstall.ps1" checksum="B16C8E819E3762AAE50E45B7F9FFEEAE" />
</files>
</fileSnapshot>
@vitoksmile
vitoksmile / ComposeHints1.kt
Created February 11, 2025 17:57
ComposeHints
@Composable
fun AppContent() {
HintOverlay {
MaterialTheme {
Scaffold {
// My app content
}
}
}
}
@HugsLibRecordKeeper
HugsLibRecordKeeper / output_log.txt
Created February 11, 2025 17:57
Rimworld output log published using HugsLib
This file has been truncated, but you can view the full file.
Log uploaded on Tuesday, February 11, 2025, 8:56:51 PM
Loaded mods:
Harmony(brrainz.harmony)[mv:2.3.1.0]: 0Harmony(2.3.3), HarmonyMod(2.3.1)
Core(Ludeon.RimWorld): (no assemblies)
Royalty(Ludeon.RimWorld.Royalty): (no assemblies)
Ideology(Ludeon.RimWorld.Ideology): (no assemblies)
Biotech(Ludeon.RimWorld.Biotech): (no assemblies)
[FSF] Filth Vanishes With Rain And Time(FrozenSnowFox.FilthVanishesWithRainAndTime): (no assemblies)
LWM's Deep Storage(LWM.DeepStorage)[mv:1.5.0.4]: IHoldMultipleThings(av:0.1.0,fv:1.0.0), LWM.DeepStorage(1.0.0.23349)
@rhmdnd
rhmdnd / README.md
Last active February 11, 2025 18:02
Experimenting with Syft

Experimenting with Syft

Using Syft to generate SBOMs.

syft ghcr.io/complianceascode/compliance-operator:latest -o syft-text --file compliance-operator-sbom.txt
import time
from typing import Optional, List, Tuple, Callable, Any
from contextlib import contextmanager
import os
import functools
import torch
import torch_xla
import torch_xla.distributed.spmd as xs
import torch_xla.core.xla_model as xm
@hanxiao
hanxiao / project_config.json
Created February 11, 2025 17:56
Projector Meta Files
{"embeddings":[{"tensorName":"jina-clip-v2","tensorShape":[1,1024],"tensorPath":"https://gist.githubusercontent.com/hanxiao/4d17ce4770f6f02f9cb9fe6fbba9135c/raw/99475160d0b8580ac41af5d8b3e02a85561584e4/tensor.tsv","metadataPath":"https://gist.githubusercontent.com/hanxiao/4d17ce4770f6f02f9cb9fe6fbba9135c/raw/802992c4220de19a90767f3000a79a31b98d0df7/metadata.tsv"}]}
@hanxiao
hanxiao / metadata.tsv
Created February 11, 2025 17:56
Projector Data Files
We can make this file beautiful and searchable if this error is corrected: No tabs found in this TSV file in line 0.
Hello world