Skip to content

Instantly share code, notes, and snippets.

@andrewwiik
andrewwiik / free.md
Last active December 25, 2021 12:23
Packix Developer Setup

Packix Free Developer Setup

If you plan on submitting paid tweaks please follow the paid guide down above

STEP 1 - Become Packix Developer

The Packix Maintainers will need your Packix Account ID, this can be found on your Packix account page under your name. You need to DM your account ID to @iospackixrepo. Once they let you know that they have added you as a developer you can continue to the next step.

STEP 6 - Finish Becoming Packix Developer

After we add you as a developer you will need to follow the banner on the top of Packix Developer Panel and fill out your Developer Information, this is what your customers will see. This is the link to the Developer Info to fill our your Developer Info: https://developer.packix.com/#/developer/info

@1j01
1j01 / README.md
Last active August 31, 2020 21:42
GitHub Desktop 1.0 dark theme stylesheet (obsolete)

Deprecated! 🎉

There's now a dark theme (currently in beta) built into GitHub Desktop.

Access it from File > Options... > Appearance


GitHub Desktop Dark Theme

@stucarney
stucarney / UIHelpers.swift
Last active November 14, 2020 15:30
iOS / Swift: Keyboard Show/Hide Animations for Views in a UIViewController
/**
Gathers all the data defined in `Keyboard Notification User Info Keys` from
a keyboard will/did show/hide `NSNotification` into an easier to use tuple.
- parameter notification: A notification resulting from a keyboard appearance notification,
e.g. `UIKeyboardWillShowNotification`
- returns: A tuple of data about the keyboard appearance extracted from the notification user info.
*/
public func keyboardInfoFromNotification(_ notification: Notification) -> (beginFrame: CGRect, endFrame: CGRect, animationCurve: UIViewAnimationOptions, animationDuration: Double) {
@idleberg
idleberg / sublime-text-macos-context-menu.md
Last active February 20, 2024 09:37 — forked from vincentmac/sublime-text-osx-context-menu.md
“Open in Sublime Text” in macOS context-menu

This list has been updated for Big Sur (and later). Since I don't use these versions, this guide might still need further improvements. For older macOS versions, please see this older revision.

Open in Sublime Text

  • Open Automator
  • Quick Action
  • Set “Service receives selected” to files or folders in any application
  • Add a Run Shell Script action
  • Set the script action to /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl -n "$@"
  • Set “Pass input” to as arguments
@clipperhouse
clipperhouse / SublimeHere.md
Last active January 1, 2020 10:35
Open Sublime Text in current Finder folder

First you need subl at the command line. Use this:

ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" ~/bin/subl

...which came from Sublime's documentation here.

Next, open (Apple)Script Editor and paste this in:

tell application "Finder"
@nicklockwood
nicklockwood / Deprecated.md
Last active March 28, 2022 08:16
Writing Objective-C framework code that works on multiple OS versions AND can be compiled using multiple SDK versions without warnings can be a PITA. Here's my approach:

Suppose we want to add support for a new iOS 8 API in our framework that replaces an older iOS 7 API. There are a few problems we might face:

  1. The new API will crash if we call it on iOS 7
  2. The new API won't compile if we build it using the iOS 7 SDK
  3. The old API will raise a deprecation warning if built with a deployment target of iOS 8 and up

These three problems require three different technical solutions:

  1. We can avoid calling the new API on an old OS version by using runtime detection (e.g. respondsToSelector:)
  2. We can avoid compiling new APIs on old SDKs using the __IPHONE_OS_VERSION_MAX_ALLOWED macro
@wishfoundry
wishfoundry / gist:7036457
Last active April 1, 2022 05:18
Set OSX default text editor to sublime text 3 instead of TextEdit
defaults write com.apple.LaunchServices LSHandlers -array-add '{LSHandlerContentType=public.plain-text;LSHandlerRoleAll=com.sublimetext.3;}'