Skip to content

Instantly share code, notes, and snippets.

View FlorianMielke's full-sized avatar

Florian Mielke FlorianMielke

View GitHub Profile
@FlorianMielke
FlorianMielke / Int+TimeInterval.swift
Last active July 5, 2023 20:17
A simple convenience extension to Int when working with TimeInterval
import Foundation
public extension Int {
var seconds: TimeInterval { TimeInterval(self) }
var second: TimeInterval { seconds }
var minutes: TimeInterval { seconds * 60 }
var minute: TimeInterval { minutes }
var hours: TimeInterval { minutes * 60 }
var hour: TimeInterval { hours }
var day: TimeInterval { hours * 24 }
@FlorianMielke
FlorianMielke / reset_simulator_test_clones.sh
Created March 30, 2021 15:17
Small script to shutdown and erase all Xcode Simulator Testing Clones.
#!/bin/bash
xcrun simctl --set testing shutdown all
xcrun simctl --set testing erase all
@FlorianMielke
FlorianMielke / Destroyed.xccolortheme
Last active March 3, 2020 08:02
Xcode Color Theme inspired by and based on Gary Bernhardt's grb256 vim theme.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>DVTConsoleDebuggerInputTextColor</key>
<string>0.823529 0.890196 1 1</string>
<key>DVTConsoleDebuggerInputTextFont</key>
<string>JetBrainsMono-Medium - 12.0</string>
<key>DVTConsoleDebuggerOutputTextColor</key>
<string>1 0.984314 0.737255 1</string>
@FlorianMielke
FlorianMielke / FMInfoPanelViewController.h
Created December 6, 2011 06:58
Info Panel attached to a UIScrollViewIndicator like in the Path 2 app. More information: http://cl.ly/CN2p
//
// FMInfoPanelViewController.h
// Created by Florian Mielke (@FlorianMielke) on 06.12.11.
//
#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>
#import <QuartzCore/QuartzCore.h>
@interface FMInfoPanelViewController : UIViewController <UIScrollViewDelegate>