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 August 21, 2025 06:29
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 24, 2025 10:25
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>')