Skip to content

Instantly share code, notes, and snippets.

View alienator88's full-sized avatar
🗓️
Because of personal reasons, I won't be free to work on my projects for a bit

Alin Lupascu alienator88

🗓️
Because of personal reasons, I won't be free to work on my projects for a bit
View GitHub Profile
@ChristopherA
ChristopherA / brew-bundle-brewfile-tips.md
Last active March 24, 2026 14:07
Brew Bundle Brewfile Tips

Brew Bundle Brewfile Tips

Copyright & License

Unless otherwise noted (either in this file or in a file's copyright section) the contents of this gist are Copyright ©️2020 by Christopher Allen, and are shared under spdx:Creative Commons Attribution Share Alike 4.0 International (CC-BY-SA-4.) open-source license.

Sponsor

If you more tips and advice like these, you can become a monthly patron on my GitHub Sponsor Page for as little as $5 a month; and your contributions will be multipled, as GitHub is matching the first $5,000! This gist is all about Homebrew, so if you like it you can support it by donating to them or becoming one of their Github Sponsors.

@tom-ludwig
tom-ludwig / FuzzySearch.swift
Created February 6, 2024 17:40
This Fuzzy Search algorithm offers both speed and ease of understanding. A significant advantage is its capability to not only provide the score but also the range of matching characters.
import Foundation
/// FuzzySearchCharacters is used to normalise strings
struct FuzzySearchCharacter {
let content: String
// normalised content is referring to a string that is case- and accent-insensitive
let normalisedContent: String
}
/// FuzzySearchString is just made up by multiple characters, similar to a string, but also with normalised characters
@mferak
mferak / SegmentedPicker.swift
Created March 29, 2025 19:45
SegmentedPicker in style of Apple's newer apps such as Photos
import SwiftUI
struct SegmentedPicker: View {
@State var selectedValue: PickerExampleValue
@Namespace var pickerAnimation
@Environment(\.accessibilityReduceMotion) private var reduceMotion
var body: some View {
HStack {
ForEach(PickerExampleValue.allCases) { value in