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
--- | |
Language: Cpp | |
BasedOnStyle: LLVM | |
AccessModifierOffset: -1 | |
AlignEscapedNewlinesLeft: true | |
AllowAllParametersOfDeclarationOnNextLine: false | |
AllowShortFunctionsOnASingleLine: None | |
AlwaysBreakTemplateDeclarations: true | |
AlwaysBreakBeforeMultilineStrings: true | |
BinPackParameters: false |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<Bucket | |
type = "2" | |
version = "2.0"> | |
<Breakpoints> | |
<!-- All Exceptions --> | |
<BreakpointProxy | |
BreakpointExtensionID = "Xcode.Breakpoint.ExceptionBreakpoint"> | |
<BreakpointContent |
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 ruby | |
search_dir = ARGV[0] || "." | |
files = Dir.glob("#{search_dir}/**/*.{h,m,swift}") | |
if files.length > 0 | |
puts "Found the following header or implementation files in '#{search_dir}':" | |
files.each do |filepath| | |
puts filepath |
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
1) -[FAILED_BEFORE TESTS_RAN] (UI Tests.xctest) | |
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ | |
Test did not run: the test bundle stopped running or crashed before the test suite started. | |
2015-03-03 19:07:35.874 LinkedStoryboards[43486:23529036] KIFTester loaded | |
CRASH REPORT: LinkedStoryboards_2015-03-03-190737_Ashton.crash | |
Process: LinkedStoryboards [43486] | |
Path: /Users/USER/Library/Developer/CoreSimulator/Devices/E330D0BB-C864-4F9A-9E65-3C6306C6A001/data/Containers/Bundle/Application/9AF432F6-C2F8-455E-B37D-5176716BFAC3/LinkedStoryboards.app/LinkedStoryboards |
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
NS_INLINE UIColor *UIColorFromHex(int hex) | |
{ | |
return [UIColor colorWithRed:((CGFloat)((hex & 0xFF0000) >> 16)) / 255.0f | |
green:((CGFloat)((hex & 0x00FF00) >> 8)) / 255.0f | |
blue:((CGFloat)((hex & 0x0000FF) >> 0)) / 255.0f | |
alpha:1.0]; | |
} |
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
// Is this a bad idea? | |
NSAssert(^BOOL() { | |
return YES; | |
}(), @"Assert"); |
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
/*** | |
* | |
* Usage: | |
* ``` | |
* - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender | |
* { | |
* [segue prepareWithExampleModel:self.model]; | |
* } | |
* ``` | |
*/ |
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
- (instancetype)initWithFrame:(CGRect)frame | |
{ | |
self = [super initWithFrame:frame]; | |
if (!self) { | |
return nil; | |
} | |
[self inspectableDefaults]; | |
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
@implementation UIResponder (FirstResponder) | |
static __weak UIResponder *currentFirstResponder; | |
+ (instancetype)currentFirstResponder | |
{ | |
[[UIApplication sharedApplication] sendAction:@selector(findCurrentFirstResponder:) to:nil from:self forEvent:nil]; | |
return currentFirstResponder; | |
} |
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
#! /bin/bash | |
# DHC - Hacked to always return a 0 code when successful. | |
SIM_DEVICES_FOLDER=~/Library/Developer/CoreSimulator/Devices | |
SIM_RUNTIME_PRFIX=com.apple.CoreSimulator.SimRuntime | |
function usage () { | |
echo "simulatorAppFolders (-s <name> | -d <device-type>) [-?] [-i <iOS version>] [-a <app-name>]" | |
echo "-? show help, and prints simulators currently installed" |