- OmniFocus 4
- iA Writer
- Slack
- Transmit https://panic.com/transmit/
- Kaleidoscope https://kaleidoscope.app/download-v2
| """ | |
| The most atomic way to train and run inference for a GPT in pure, dependency-free Python. | |
| This file is the complete algorithm. | |
| Everything else is just efficiency. | |
| @karpathy | |
| """ | |
| import os # os.path.exists | |
| import math # math.log, math.exp |
| import SwiftUI | |
| /// The main application entry point for the Ancient Prophecy Tab Bars app. | |
| /// | |
| /// This app demonstrates a custom tab bar implementation with an overlay menu system. | |
| /// Specifically the implementation of a separate tab bar option now available in iOS 26. | |
| /// The app automatically exits when the main content view disappears and uses a fixed content size window. | |
| @main | |
| struct AncientProphecyTabBarsApp: App { | |
| var body: some Scene { |
| import UIKit | |
| extension UITextField { | |
| /// Add a trailing placeholder label that tracks the text as it changes | |
| func addTrailingPlaceholder(_ placeholder: String) { | |
| let label = UILabel() | |
| label.text = placeholder | |
| label.alpha = 0.3 | |
| label.isHidden = true | |
| let container = UIView() |
| // To compile: clang++ -arch x86_64 -arch arm64 -std=c++20 library_injector.cpp -lbsm -lEndpointSecurity -o library_injector, | |
| // then codesign with com.apple.developer.endpoint-security.client and run the | |
| // program as root. | |
| #include <EndpointSecurity/EndpointSecurity.h> | |
| #include <algorithm> | |
| #include <array> | |
| #include <bsm/libbsm.h> | |
| #include <cstddef> | |
| #include <cstdint> |
| extension Locale { | |
| /// Returns an SF Symbol currency image that match's the device's current locale, for instance dollar in North America, Indian rupee in India, etc. | |
| func currencySFSymbol(filled: Bool, withConfiguration configuration: UIImage.Configuration? = nil) -> UIImage { | |
| // Default currency symbol will be the Animal Crossing Leaf coin to remain impartial to any specific country | |
| let defaultSymbol = UIImage(systemName: "leaf.circle\(filled ? ".fill" : "")")! | |
| guard let currencySymbolName = currencySymbolNameForSFSymbols() else { return defaultSymbol } | |
| let systemName = "\(currencySymbolName).circle\(filled ? ".fill" : "")" | |
| return UIImage(systemName: systemName, withConfiguration: configuration) ?? defaultSymbol |
| extension UIAlertController { | |
| /// Creates a view controller for notifying the user that a conversion is occurring. Accepts a block that is executed upon conversion completion. | |
| static func createConvertingAlertController(onConversionCompletion: @escaping () -> Void) -> UIAlertController { | |
| // The title font corresponds to Dynamic Type style "Headline" | |
| let titleFont = UIFont.preferredFont(forTextStyle: .headline) | |
| let calculatorImageView = UIImageView(image: UIImage(named: "calculator.fill", in: nil, with: UIImage.SymbolConfiguration(font: UIFont.systemFont(ofSize: titleFont.pointSize * 2.0, weight: .semibold)))) | |
| let measuringAttributedStringHeight = NSAttributedString(string: "Penguin", attributes: [.font: titleFont]).boundingRect(with: .zero, options: [.usesFontLeading, .usesLineFragmentOrigin], context: nil).height | |
| let desiredOffset = 15.0 + calculatorImageView.bounds.height | |
| let totalNewlinePrefixes = Int((desiredOffset / measuringAttributedStringHeight). |
| #!/bin/bash | |
| # Script to disable the iOS Simulator app from showing the "Do you want the application xxxx to accept incoming network connections?" pop-up every time the app is run | |
| echo "> Enter password to temporarily shut firewall off" | |
| sudo /usr/libexec/ApplicationFirewall/socketfilterfw --setglobalstate off | |
| echo "> Add Xcode as a firewall exception" | |
| /usr/libexec/ApplicationFirewall/socketfilterfw --add /Applications/Xcode.app/Contents/MacOS/Xcode |
| language: objective-c | |
| os: osx | |
| xcode_workspace: {workspace-name}.xcworkspace | |
| xcode_scheme: {workspace-name} | |
| xcode_sdk: iphonesimulator9.0 | |
| osx_image: xcode8 | |
| before_install: | |
| - | | |
| brew update | |
| gem install xcpretty -N --no-ri --no-doc |
| # The trick is to link the DeviceSupport folder from the beta to the stable version. | |
| # sudo needed if you run the Mac App Store version. Always download the dmg instead... you'll thank me later :) | |
| # Support iOS 15 devices (Xcode 13.0) with Xcode 12.5: | |
| sudo ln -s /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/15.0 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport | |
| # Then restart Xcode and reconnect your devices. You will need to do that for every beta of future iOS versions | |
| # (A similar approach works for older versions too, just change the version number after DeviceSupport) |