Click to toggle contents of `code`
CODE!
<?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"> | |
<!-- iOS 10, macOS Sierra, and friends bring a new logging subsystem that's | |
supposed to scale from the kernel, up to frameworks, and up to apps. It defaults | |
to a more regimented, privacy-focused approach that large apps and complex | |
systems need. | |
It, along with Activity Tracing introduced in iOS 8 and macOS Yosemite and the | |
Console app in macOS Sierra, hope to help you graduate from caveman debugging to |
#!/usr/bin/env bash | |
# Build Phase Script for removing NSAppTransportSecurity exceptions from Info.plist | |
# https://gist.github.com/Ashton-W/07654259322e43a2b6a50bb289e72627 | |
set -o errexit | |
set -o nounset | |
if [[ -z "${REMOVE_ATS_EXCEPTIONS+SET}" ]]; then | |
echo "error: User Defined Build Setting REMOVE_ATS_EXCEPTIONS must be set" | |
exit 1 |
function pi --description 'pod install' | |
if test -e Gemfile | |
command bundle exec pod install --no-repo-update | |
else | |
command pod install --no-repo-update | |
end | |
end |
CODE!
command alias sim_location expr (void)NSLog(@"Printing Simulator App Paths:\n\nBundle:\n%@\n\nDocuments:\n%@\n\n", [[NSBundle mainBundle] resourcePath], [[[[NSFileManager defaultManager] URLsForDirectory:NSDocumentDirectory inDomains:NSUserDomainMask] lastObject] resourceSpecifier]); |
#import <Foundation/Foundation.h> | |
#import <XCTest/XCTest.h> | |
NS_ASSUME_NONNULL_BEGIN | |
@interface ExpectationDelegateProxy : NSProxy | |
@property (nonatomic) SEL selector; | |
@property (nonatomic) Protocol *protocol; | |
@property (nonatomic) XCTestExpectation *expectation; |
#!/usr/bin/env bash | |
# Build Phase Script for copying and signing libReveal based on Configuration | |
# https://gist.github.com/Ashton-W/6db611ac93be2f8bad7f | |
set -o errexit | |
set -o nounset | |
LIBREVEAL_PATH="/Applications/Reveal.app/Contents/SharedSupport/iOS-Libraries/libReveal.dylib" | |
INJECT_REVEAL="${INJECT_REVEAL:-NO}" |
// ==UserScript== | |
// @name WWDC Video Transcripts No Scroll | |
// @namespace http://wwdc/ | |
// @version 0.1 | |
// @description removes max-height of WWDC video transcripts, no more scrolls | |
// @author You | |
// @include https://developer.apple.com/videos/play/* | |
// @grant GM_addStyle | |
// ==/UserScript== |
#!/usr/bin/env bash | |
# Build Phase Script for use in Xcode | |
# Copy Resources based on Configuration | |
# | |
# https://gist.github.com/Ashton-W/a47ec8b128ecbe470632 | |
set -o nounset | |
# From Build Environment |
#!/bin/sh | |
# Alot of these configs have been taken from the various places | |
# on the web, most from here | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# Set the colours you can use | |
black='\033[0;30m' | |
white='\033[0;37m' | |
red='\033[0;31m' |