Skip to content

Instantly share code, notes, and snippets.

Diff Summary.

diff File

The diff file describes the net changes across the total DB. You should expect changes to this file to represent intended changes to the shovel output. If you are performing a refactor, with no intended code changes, you should expect no changes to this file.

csv File

The csv file represents all operations that were performed that resulted in a data update. This doesn't including touching a content item (only updating a timestamp), but does include wiping a field out and then restoring that field to it's original contents. It will also track id changes.

Feb 10 11:21:28 starbase1 kernel: Linux version 6.14.0-rc2-starbase1-00077-g3b8e9cfd2408-dirty (norad@highlander) (Debian clang version 19.1.7 (1+b1), Debian LLD 19.1.7) #1 SMP PREEMPT Mon Feb 10 10:57:32 CET 2025
Feb 10 11:21:28 starbase1 kernel: Command line: root=/dev/mapper/vg_nvme-lv_bcfs0 rootfstype=bcachefs rootflags=fsck,fix_errors,relatime,lazytime,verbose rd.skipfsck fsck.mode=skip ro amd_pstate=active lsm=capability,landlock,bpf,apparmor,ima netconsole=5555@192.168.1.1/eth1,5556@192.168.1.99/ce:95:ee:e6:28:f1 systemd.machine_id=b080fb65f99489b2823f07dd00000274
Feb 10 11:21:28 starbase1 kernel: BIOS-provided physical RAM map:
Feb 10 11:21:28 starbase1 kernel: BIOS-e820: [mem 0x0000000000000000-0x000000000009ffff] usable
Feb 10 11:21:28 starbase1 kernel: BIOS-e820: [mem 0x00000000000a0000-0x00000000000fffff] reserved
Feb 10 11:21:28 starbase1 kernel: BIOS-e820: [mem 0x0000000000100000-0x0000000009afefff] usable
Feb 10 11:21:28 starbase1 kernel: BIOS-e820: [mem 0x0000000009aff000-0x0000000009ffffff] r
@vitoksmile
vitoksmile / HintController.kt
Created February 11, 2025 18:09
ComposeHints
@Stable
class HintController internal constructor() {
private var queue = mutableStateListOf<HintAnchorState>()
internal val hint: HintAnchorState? get() = queue.firstOrNull()
private val pendingRequests = mutableMapOf<HintAnchorState, Continuation<Unit>>()
suspend fun show(hint: HintAnchorState) {
@vitoksmile
vitoksmile / HintOverlay.kt
Created February 11, 2025 18:09
ComposeHints
@Composable
internal fun HintOverlay(
anchor: HintAnchorState,
onDismiss: () -> Unit,
) {
Popup(
onDismissRequest = onDismiss,
// Set focusable to handle back press events
properties = remember { PopupProperties(focusable = true) },
) {
@vitoksmile
vitoksmile / HintController.kt
Created February 11, 2025 18:08
ComposeHints
@Stable
class HintController internal constructor() {
internal var hint by mutableStateOf<HintAnchorState?>(null)
fun show(hint: HintAnchorState) {
this.hint = hint
}
fun dismiss() {
@vitoksmile
vitoksmile / HintController.kt
Created February 11, 2025 18:08
ComposeHints
@Composable
fun rememberHintController(overlay: Brush): HintController {
return rememberHintController(overlay = LocalHintOverlayBrush provides overlay)
}
@Composable
fun rememberHintController(overlay: Color = HintOverlayColorDefault): HintController {
return rememberHintController(overlay = LocalHintOverlayColor provides overlay)
}
{
"basics": {
"name": "Thomas Edison",
"label": "Inventor and Businessman",
"picture": "https://example.com/photo.jpg",
"email": "thomas.edison@example.com",
"phone": "(123) 456-7890",
"website": "https://thomasedison.com",
"summary": "Prolific inventor and businessman known for developing many devices that greatly influenced life around the world, including the phonograph, the motion picture camera, and the electric light bulb.",
"location": {
@prakhart111
prakhart111 / main.dart
Created February 11, 2025 18:08
Snippet created via Next.js API
import 'package:flutter/material.dart';
import 'package:http/http.dart' as http;
import 'dart:convert';
void main() {
runApp(const MyApp());
}
class MyApp extends StatefulWidget {
const MyApp({Key? key}) : super(key: key);
@vitoksmile
vitoksmile / App.kt
Created February 11, 2025 18:08
ComposeHints
val hintController = rememberHintController()
IconButton(
modifier = Modifier
.hintAnchor(topAppBarActionHintAnchor, CircleShape),
onClick = {
hintController.show(topAppBarActionHintAnchor)
},
)
@vitoksmile
vitoksmile / HintController.kt
Created February 11, 2025 18:07
ComposeHints
@Stable
class HintController internal constructor() {
internal var hint by mutableStateOf<HintAnchorState?>(null)
fun show(hint: HintAnchorState) {
this.hint = hint
}
}