Skip to content

Instantly share code, notes, and snippets.

@jessedc
jessedc / gist:12a74aff88d06e669cf1c9999408c62c
Created January 13, 2019 00:22
xcodebuild --help ExportOptions.plist organised in a more logical way
ExportOptions.plist - Options in a better order
Xcodebuild manfile says the following
> **Distributing Archives**
> The -exportArchive option specifies that xcodebuild should distribute the archive specified by -archivePath using the options specified by
> -exportOptionsPlist. xcodebuild -help can print the full set of available inputs to -exportOptionsPlist. The product can either be uploaded to Apple or
> exported locally. The exported product will be placed at the path specified by -exportPath.
The following is the list of settings (as of Xcode 10.1) output by `xcodebuild --help` but in a more logical order.
@skl
skl / iosProximityObserver.swift
Created May 29, 2020 11:49
iOS SwiftUI proximity observer example
import SwiftUI
import UIKit
class ProximityObserver {
@objc func didChange(notification: NSNotification) {
print("MyView::ProximityObserver.didChange")
if let device = notification.object as? UIDevice {
print(device.proximityState)
}
}
@nfalliere
nfalliere / DartSnapshotHashToVersionTag.txt
Last active January 17, 2025 01:08
List of Dart snapshot version hash (internal version) to version tag (public git tag)
# note: the hash is located at offset 0x14, after the int32 magic (0xDCDCF5F5), int64 size, and int64 snapshot kind fields.
# last update: 2025/01/07
# snapshot_hash,dart_version_tag
19ac30c2bacca37ef7691604e75be559,2.0.0
d120342d48b35fc67901acb723bb6e9f,2.0.0-dev.0.0
d120342d48b35fc67901acb723bb6e9f,2.0.0-dev.0.1
53db5f61774a5fbc5ee04696b38726f8,2.0.0-dev.1.0
3cebf13e885ccde5bf5d36d308390ddf,2.0.0-dev.10.0
4980a5a9e7247ed5f306c8c565d193cc,2.0.0-dev.11.0
8ed2b9130065c72a181a9a40e17387bd,2.0.0-dev.12.0
@detain
detain / mame.md
Last active November 2, 2025 14:22
MAME Notes on Setup with Multimedia/EXTRAs and mameinfo/highscores/history/etc

MAME

Setting up MAME

Create the ini files with the appropriate command:

mame -createconfig
@Steveplays28
Steveplays28 / distant_horizons_shader_compatibility_information.md
Last active January 17, 2026 01:52
Distant Horizons shader compatibility info

Distant Horizons shader compatibility information

Distant Horizons v2.0.0 (and up) shader compatibility information.

v2

Install guide

Fabric