Skip to content

Instantly share code, notes, and snippets.

View posixpascal's full-sized avatar
💭
All your bases are belong to us

Pascal posixpascal

💭
All your bases are belong to us
View GitHub Profile
@juliensagot
juliensagot / ValuePicker.swift
Last active May 10, 2025 21:24
Custom SwiftUI Picker
import SwiftUI
public struct ValuePicker<SelectionValue: Hashable, Content: View>: View {
private let title: LocalizedStringKey
private let selection: Binding<SelectionValue>
private let content: Content
public init(
_ title: LocalizedStringKey,
selection: Binding<SelectionValue>,
@yebt
yebt / get_composer_deps.py
Last active August 22, 2024 15:29
This script was created as an helps to recover the require dependencies inside vendor directory of project, if you lost the main composer.json
#!/bin/python
# -*- coding: utf-8 -*-
import json
import sys
# Constant vars
if len(sys.argv) != 2:
print('Error!! -- No file specified ')
print('\t get_composer_deps.py <path/to/vendor/composer/installed.json>')