Skip to content

Instantly share code, notes, and snippets.

View jnutting's full-sized avatar

Jack Nutting jnutting

View GitHub Profile
@Rukh
Rukh / URLRequest+cURL.swift
Last active September 21, 2025 19:28 — forked from abhi21git/ExtensionURLRequest.swift
Swift cURL Printer
//
// URLRequest+cURL.swift
//
// Created by Dmitry Gulyagin on 19/02/2024.
//
import struct Foundation.URLRequest
public extension URLRequest {
@drewolbrich
drewolbrich / View+WindowGeometryPreferences.swift
Last active September 15, 2025 18:49
A visionOS SwiftUI view modifier that can be used to hide a window's resize handles or to constrain a window's aspect ratio
//
// View+WindowGeometryPreferences.swift
//
// Created by Drew Olbrich on 1/30/24.
// Copyright © 2024 Lunar Skydiving LLC. All rights reserved.
//
// MIT License
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
import Foundation
final class Sample: NSObject {
@objc dynamic var name: String = ""
}
class MyObj: NSObject {
@objc dynamic var test: String = ""
}
extension NSObjectProtocol where Self: NSObject {
@westerlund
westerlund / ffmpeg_commands.md
Last active November 15, 2017 08:29
Common ffmpeg commands

common ffmpeg commands

common arguments

-y overwrite without asking
-r frame rate
-vf eq=1:0:1.1:1:1:1:1:1 change colors. contrast : brightness : saturation : gamma : gamma r : gamma g : gamma b : weight
-vf scale=width:height scale/resize. -1 will leave preserved ratio, for instance 320:-1 will resize to 320 in width and keep ratio
-ss seek to position
-t duration, trim to a certain length