This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// XCTestExpectationExtensions.swift | |
// | |
// Created by Hugues Bernet-Rollande on 7/4/16. | |
// | |
import XCTest | |
extension XCTestExpectation { | |
private class IntWrapper { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# http://papers.ch/speeding-up-your-mac-osx-terminal-input/ | |
#echo "Disable press-and-hold for keys in favor of key repeat" | |
#defaults write NSGlobalDomain ApplePressAndHoldEnabled -bool false | |
echo "Set a blazingly fast keyboard repeat rate" | |
defaults write NSGlobalDomain KeyRepeat -int 0.02 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xcrun simctl list devices | grep -v '^[-=]' | cut -d "(" -f2 | cut -d ")" -f1 | xargs -I {} xcrun simctl delete "{}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
VERSION=0.1.0 | |
USAGE="$(basename "$0") [--ios|--mac] [-f ./file.playground] [Files...] | |
where: | |
-h Show this help text | |
--ios Tells the command to turn the playground into a iOS compatible playground (default). | |
--mac Tells the command to turn the playground into a iOS compatible playground. | |
-f The path to a playground file (or you can leave out and all trailing arguments are parsed for playgrounds). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [[ $BASH_SOURCE != $0 ]]; then echo "$BASH_SOURCE must be executed, not sourced."; return 255; fi | |
# | |
# A script to fool iOS playgrounds into allowing access to CommonCrypto | |
# | |
# The script creates a dummy CommonCrypto.framework in the SDK's System | |
# Framework Library Directory with a module map that points to the | |
# umbrella header | |
# | |
# Usage: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (void)show:(BOOL)animated { | |
self.alpha = 0.0f; | |
self.hidden = NO; | |
if (animated) { | |
[UIView beginAnimations:nil context:nil]; | |
} | |
self.alpha = 1.0f; | |