Skip to content

Instantly share code, notes, and snippets.

View ian-mcdowell's full-sized avatar

Ian McDowell ian-mcdowell

View GitHub Profile
@ian-mcdowell
ian-mcdowell / LLVM_for_iOS.sh
Last active April 3, 2018 17:20 — forked from holzschu/LLVM_for_iOS.sh
Cross-compiling LLVM for iOS
#! /bin/bash
# Bail out on error
set -e
LLVM_SRC=http://releases.llvm.org/6.0.0/llvm-6.0.0.src.tar.xz
CLANG_SRC=http://releases.llvm.org/6.0.0/cfe-6.0.0.src.tar.xz
LIBCXX_SRC=http://releases.llvm.org/6.0.0/libcxx-6.0.0.src.tar.xz
LIBCXXABI_SRC=http://releases.llvm.org/6.0.0/libcxxabi-6.0.0.src.tar.xz
@ian-mcdowell
ian-mcdowell / test.swift
Created February 10, 2018 07:33
Swift String Issues
import Foundation
var str = "1"
// The startIndex + 1 should equal the end index, which it does
var position = str.index(str.startIndex, offsetBy: 1)
if position == str.endIndex {
print("Yay!")
}
@ian-mcdowell
ian-mcdowell / Info.plist
Last active February 14, 2022 11:13
Keynote DAVFileProvider
<?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>CFBundleName</key>
<string>KeynoteDAVFP</string>
<key>CFBundleIdentifier</key>
<string>com.apple.Keynote.KeynoteDAVFP</string>
<key>CFBundleDisplayName</key>
<string>WebDAV</string>
@ian-mcdowell
ian-mcdowell / DebuggingOverlay.m
Last active February 27, 2021 19:04
UIDebuggingInformationOverlay for iOS 10, 11, and 12
#import <objc/runtime.h>
@interface DebuggingOverlay: NSObject
@end
@implementation DebuggingOverlay
+ (void)toggleOverlay {
id debugInfoClass = NSClassFromString(@"UIDebuggingInformationOverlay");