WWDC 2006 2007 2008 2009 2010 2011 2012 2013 2014
@implementation NSApplication (OpenAtLogin) | |
#pragma clang diagnostic push | |
#pragma clang diagnostic ignored "-Wdeprecated-declarations" | |
- (BOOL)openAtLogin | |
{ | |
LSSharedFileListItemRef loginItem = [self loginItem]; | |
BOOL result = loginItem ? YES : NO; |
#!/bin/sh | |
# make sure you have imagemagick installed: brew install imagemagick | |
# your app_icons.sh file should have the correct permissions: run `chmod 775 app_icons.sh` in your terminal from where you put this file | |
# put your `my_icon.png` next to this file and run ./app_icons.sh to export your app icons | |
x=my_icon.png | |
y=${x%.*} | |
# delete the export directory so we start clean |
Check out the repo instead. The Wisdom of Quinn Now with 100% more archived PDFs.
Informative DevForum posts from everyone's favorite DTS member.
(Arranged newest to oldest)
import Foundation | |
typealias Continuation<Ret> = (Ret) -> Void | |
typealias ContinuationMonad<Value> = (@escaping Continuation<Value>) -> Void | |
typealias Transform<T,U> = (T) -> ContinuationMonad<U> | |
func async<Value>(_ wrappedValue: Value) -> ContinuationMonad<Value> { | |
{ $0(wrappedValue) } | |
} |
// | |
// PagingView.swift | |
// Wallaroo - https://wallaroo.app | |
// | |
// Created by Sean Heber (@BigZaphod) on 8/9/22. | |
// | |
import SwiftUI | |
// This exists because SwiftUI's paging setup is kind of broken and/or wrong out of the box right now. |
vimdiff
comes as a pre-configured merge tool for jj
and can be used with jj resolve
out of the box. However, the default configuration for
vimdiff
as a diff editor (for jj split
, etc.) is barely useable.
To more conveniently use Vim as a difftool for jj
, try one of the following setups:
- Install the
DirDiff
Vim plugin.
A curated list of useful command line apps, in celebration of the TUI.
“Knowledge brings fear” (Mars University Mission Statement)
If you want to contribute, you are highly encouraged to do so. Please read the contribution guidelines.
import Foundation | |
public func printStackDepth( | |
label: String? = nil, | |
fileID: StaticString = #fileID, | |
line: UInt = #line | |
) { | |
let thread = pthread_self() | |
let stackAddress = UInt(bitPattern: pthread_get_stackaddr_np(thread)) | |
var used: UInt = 0 | |
withUnsafeMutablePointer(to: &used) { |
I maintain the Community mobile app - a moderately large codebase that is fully modularized using Swift Package Manager and uses The Composable Architecture. I have recently completed the process of getting the project ready for Xcode 16 and Swift 6 and I wanted to outline the approach I took and some of the issues I encountered, especially regarding TCA.
There are already [good