Skip to content

Instantly share code, notes, and snippets.

View scifisatan's full-sized avatar
🗯️
Koder desu

Abi Shrestha scifisatan

🗯️
Koder desu
View GitHub Profile
@scifisatan
scifisatan / AdaptiveSheet.swift
Last active November 19, 2025 07:43
A view modifier that presents a sheet which automatically adjusts its height according to its content.
import SwiftUI
/// A view modifier that presents a sheet which automatically adjusts its height
/// to fit the content inside. This avoids hardcoding heights and makes the sheet reusable.
/// Usage: Call .adaptiveSheet(isPresented:content:) on any view.
///
/// - Parameters:
/// - isPresented: Binding controlling presentation.
/// - content: A SwiftUI ViewBuilder for the sheet's body.
@scifisatan
scifisatan / fzf-logcat.go
Last active June 3, 2025 17:32
This is the implementation i got using AI, definitely need some time to process and learn how each component actually works even though I got the overall gist of it.
package main
import (
"bufio"
"fmt"
"os"
"os/exec"
"os/signal"
"strings"
"sync"