This file contains hidden or 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 | |
current_branch_name=`git rev-parse --abbrev-ref HEAD` | |
git branch \ | |
| grep -v master \ | |
| grep -v $current_branch_name \ | |
| xargs git branch -D |
This file contains hidden or 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
import Foundation | |
// Swift translation of https://pspdfkit.com/blog/2016/running-ui-tests-with-ludicrous-speed/ | |
class ConditionTester { | |
typealias TestCondition = () -> (Bool) | |
private let condition: TestCondition | |
private var fulfilled: Bool { return condition() } | |
private var currentRunLoop: CFRunLoop { | |
return RunLoop.current.getCFRunLoop() |