Skip to content

Instantly share code, notes, and snippets.

View MaxenceMottard's full-sized avatar
📱

Maxence MaxenceMottard

📱
View GitHub Profile
@MaxenceMottard
MaxenceMottard / ActivityView.swift
Last active August 3, 2021 08:17
UIActivityViewController implementation in SwiftUI
import UIKit
import SwiftUI
struct ActivityView: UIViewControllerRepresentable {
typealias Callback = (_ activityType: UIActivity.ActivityType?, _ completed: Bool, _ returnedItems: [Any]?, _ error: Error?) -> Void
let activityItems: [Any]
let applicationActivities: [UIActivity]? = nil
let excludedActivityTypes: [UIActivity.ActivityType]? = nil
let callback: Callback? = nil
@MaxenceMottard
MaxenceMottard / .zshrc
Last active January 4, 2020 22:23
Docker zshrc
# ------------------------------------
# Docker alias and function
# ------------------------------------
# Get latest container ID
alias dl="docker ps -l -q"
# Get container process
alias dps="docker ps"