Skip to content

Instantly share code, notes, and snippets.

View Kr00lIX's full-sized avatar
💭
Glory to Ukraine! 💙💛

Anatolii Kovalchuk Kr00lIX

💭
Glory to Ukraine! 💙💛
View GitHub Profile
@daniloc
daniloc / DecimalTextField.swift
Last active April 10, 2023 17:01
SwiftUI TextField for decimal input
struct DecimalTextField: View {
@Binding var decimalValue: Decimal
@State var clearValue: Decimal = 1
var clearValueString: String {
return String("\(clearValue)")
}
@State private var lastValidInput: String?
@inket
inket / PreviewScreenshot.swift
Last active July 28, 2024 23:57
How to take screenshots of SwiftUI previews
#if DEBUG
import SwiftUI
private let screenshotDirectory = "/Users/inket/Desktop/"
struct PreviewScreenshot: ViewModifier {
struct LocatorView: UIViewRepresentable {
let tag: Int
func makeUIView(context: Context) -> UIView {
@lucaguada
lucaguada / RASPBERRY_PI_4.md
Last active June 8, 2025 20:30
Steps to fully install Ubuntu Server and MiniKube on Raspberry Pi 4 (wip)

How to install Ubuntu Server and Minikube on Raspberry Pi 4 4GB+ (recommended)

Disclaimer: this step-by-step GIST has been created with no guarantees, I may have missed some steps because of distraction or chiptune improvised on-chair-dancing, so be patient and let me know if I must add or fix something.

This is the way for living long and prospering!

Download Raspberry Pi Imager

Download and install Raspberry Imager: https://www.raspberrypi.org/software/

@joelpaulkoch
joelpaulkoch / rag_time.exs
Last active June 17, 2025 09:05
A RAG for Elixir in Elixir
Mix.install(
[
{:phoenix_playground, "~> 0.1.6"},
{:phoenix, "~> 1.7.14"},
{:phoenix_live_view, "~> 1.0.0-rc.1"},
{:chroma, "~> 0.1.3"},
{:text_chunker, "~> 0.3.1"},
{:nx, "~> 0.9.0"},
{:exla, "~> 0.9.1"},
{:axon, "~> 0.7.0"},