Skip to content

Instantly share code, notes, and snippets.

@roostr
roostr / Watchdog.swift
Last active March 19, 2024 14:40
A watchdog timer for iOS to detect when the main run loop is stalled
//
// Watchdog.swift
//
// The MIT License (MIT)
// Copyright © 2023 Front Pocket Software LLC
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
// documentation files (the “Software”), to deal in the Software without restriction, including without limitation the
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to the following conditions:
@roostr
roostr / translate_release_notes.sh
Last active March 23, 2024 05:33
Translate release notes
#!/bin/bash
# Translate your iOS app's release notes into other languages with an automated command-line translation service.
# Designed to work with Fastlane's directory layout
# Dependencies: brew install translate-shell
# set -ex
srcLang='en-US'