Store file at ~/.config/fish/functions/path.fish path
$ path --help| // Run any SwiftUI view as a Mac app. | |
| import Cocoa | |
| import SwiftUI | |
| NSApplication.shared.run { | |
| VStack { | |
| Text("Hello, World") | |
| .padding() | |
| .background(Capsule().fill(Color.blue)) |
| import Foundation | |
| let stmt: NSString = "Actionable emptiness" | |
| let options: NSLinguisticTagger.Options = [.omitWhitespace, .omitPunctuation, .omitOther] | |
| let stringRange = NSMakeRange(0, stmt.length) | |
| let languageMap = ["Latn":["en"]] | |
| stmt.enumerateLinguisticTags(in: stringRange, scheme: NSLinguisticTagScheme.lemma, options: options, orthography: nil) { tag, _, _, _ in | |
| print(tag?.rawValue) | |
| } |
| let pixelBufferPool: CVPixelBufferPool = // ... | |
| unsafe_pointer: do { | |
| let pixelBufferPointer = UnsafeMutablePointer<CVPixelBuffer?>.allocate(capacity: 1) | |
| defer { | |
| pixelBufferPointer.deinitialize(count: 1) | |
| pixelBufferPointer.deallocate() | |
| } | |
| defmodule EctoMigrationTest do | |
| use ExUnit.Case | |
| def rollback, do: Mix.Shell.IO.cmd("MIX_ENV=test mix ecto.rollback --all") | |
| def migrate, do: Mix.Shell.IO.cmd("MIX_ENV=test mix ecto.migrate") | |
| test "test rollback and migration" do | |
| assert 0 == rollback() | |
| assert 0 == migrate() |
According to tailwindlabs/tailwindcss-typography#69 (comment)
| { | |
| "owner": "SwiftPackageIndex", | |
| "name": "SwiftPackageIndex-Server" | |
| } |
| struct Message { | |
| enum Privacy { | |
| case `public` | |
| case `private` | |
| } | |
| var value: String | |
| } | |
| extension Message: CustomStringConvertible { |