- Save
Tests.scpt
to the folder~/.Xcode/
- Open the folder
~/.Xcode/
inTerminal.app
- Perform the command
chmod +x ./Tests.scpt
inTerminal.app
- Open
Xcode ➭ Behaviors ➭ Testing Succeeds
- Choose
~/.Xcode/Tests.scpt
in the Run popup - Open
Xcode ➭ Behaviors ➭ Testing Fails
and repeat
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
git clone git@github.com:<your-gh-name>/<repo-name>.git <local-directory-path> | |
cd <local-directory-path> | |
git remote add upstream https://github.com/<original-gh-name>/<repo-name>.git | |
git pull upstream master | |
git push |
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
#define TIMER_START() CFAbsoluteTime timer_startTime = CFAbsoluteTimeGetCurrent(); | |
#define TIMER_STOP() (CFAbsoluteTimeGetCurrent() - timer_startTime); | |
#define TIMER_STOP_AND_LOG(prefixString) CFAbsoluteTime timer_endTime = TIMER_STOP(); NSLog(@"%@%f", ((prefixString)?prefixString:@""), timer_endTime); |
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
#import <UIKit/UIKit.h> | |
#import "AppDelegate.h" | |
#import "TestAppDelegate.h" | |
int main(int argc, char *argv[]) | |
{ | |
@autoreleasepool | |
{ | |
BOOL runningTests = (NSClassFromString(@"XCTestCase") != nil); | |
return UIApplicationMain(argc, argv, nil, NSStringFromClass((!runningTests?[AppDelegate class]:[TestAppDelegate class]))); |
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
tail -f /var/log/system.log |
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
defaults write com.apple.finder CreateDesktop -bool false | |
killall Finder |
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
javascript: document.body.contentEditable='true'; document.designMode='on'; void 0; |
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
defaults write <app domain name> NSAppSleepDisabled -bool YES |
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
defaults write com.apple.Terminal NSAppSleepDisabled -bool YES |
OlderNewer