Skip to content

Instantly share code, notes, and snippets.

View virtualrapha's full-sized avatar

Raphael Köhler virtualrapha

  • Cologne, Germany
View GitHub Profile
@joshdholtz
joshdholtz / .env.secret.SAMPLE
Created April 1, 2022 03:04
Fastfile for building and updating for Sparkle
# GitHub
FL_GITHUB_API_TOKEN=
FL_GITHUB_RELEASE_API_TOKEN=
APP_STORE_CONNECT_API_KEY_ISSUER_ID=
APP_STORE_CONNECT_API_KEY_KEY_ID=
APP_STORE_CONNECT_API_KEY_KEY_FILEPATH=fastlane/YOUR.p8
FL_NOTARIZE_BUNDLE_ID=
FL_NOTARIZE_ASC_PROVIDER=
@zntfdr
zntfdr / firebase-iOS-breakdown.swift
Last active September 24, 2024 06:29
Firebase iOS Version breakdown
// How to:
// 1. Open the Firebase Analytics Dashboard
// 2. Scroll to bottom, where you see the "Users by Device model" widget
// 3. Click "View device models" in that widget (this opens the "Tech details" Firebase Analytics page)
// 4. Above the table shown in the new page, click on the “Device model” drop down menu and select “OS with Version”
// 5. Make sure to select “OS with version” and not “OS Version”
// 6. On the top right corner of the page, click on the “Share this report” icon (next to the date)
// 7. Click “Download file” on the new side bar, then “Download CSV"
// 8. Open the file and select the iOS/Android breakdown raw data
// 9. Replace the sample data in this script with your data
@bwhiteley
bwhiteley / HostingView.swift
Last active November 28, 2024 11:22
Host SwiftUI in a UIView
import Foundation
import SwiftUI
#if os(macOS)
public typealias PlatformViewType = NSView
#elseif !os(watchOS)
import UIKit
public typealias PlatformViewType = UIView
#endif
#if !os(watchOS)
@smileyborg
smileyborg / InteractiveTransitionCollectionViewDeselection.m
Last active May 6, 2026 21:23
Animate table & collection view deselection alongside interactive transition (for iOS 11 and later)
// UICollectionView Objective-C example
- (void)viewWillAppear:(BOOL)animated {
[super viewWillAppear:animated];
NSIndexPath *selectedIndexPath = [[self.collectionView indexPathsForSelectedItems] firstObject];
if (selectedIndexPath != nil) {
id<UIViewControllerTransitionCoordinator> coordinator = self.transitionCoordinator;
if (coordinator != nil) {
[coordinator animateAlongsideTransition:^(id<UIViewControllerTransitionCoordinatorContext> context) {
@joshdholtz
joshdholtz / update_gitignore.sh
Last active October 14, 2025 16:34
Remove files from updated .gitignore
git ls-files -ci --exclude-standard -z | xargs -0 git rm --cached
### Alias in .zshrc or .bashrc because too hard to remember
# alias ungit="git ls-files -ci --exclude-standard -z | xargs -0 git rm --cached"