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
update_current_git_vars |
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
static const CGFloat kFontWeightEpsilon = FLT_EPSILON; | |
@implementation UIFont (CustomizedDynamicType) | |
+ (nonnull UIFont *)preferredFontWithDefaultSize:(CGFloat)size | |
textStyle:(nonnull UIFontTextStyle)textStyle { | |
return [self preferredFontWithDefaultSize:size | |
textStyle:textStyle | |
fontWeight:UIFontWeightRegular | |
italic:NO]; |
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 ruby | |
# | |
# This script can be used to check the in-store availability of the iPhone 5S. | |
# By default, it searches for all AT&T models. You can change this by editing | |
# the MY_DEVICES array below. While the Apple API supports searching for | |
# multiple devices at once, there is a limit. | |
# | |
# Once you have properly configured the MY_DEVICES array, you can run this script | |
# from the terminal. It takes a single parameter, which should be the zip code you | |
# wish to use for your search. |
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
// | |
// SCTimingViewController.m | |
// iOSTester | |
// | |
// Created by Sebastian Celis on 8/6/12. | |
// | |
#import <mach/mach.h> | |
#import <mach/mach_time.h> | |
#import "SCTimingViewController.h" |
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
Incident Identifier: D4A44777-0457-4E22-852B-9984CA14A740 | |
CrashReporter Key: c4fa1c6f9ab63f0dc21c1ad60d842dcd1ff27ea2 | |
Hardware Model: iPad3,1 | |
Process: InstapaperPro [869] | |
Path: /var/mobile/Applications/7295E22C-20ED-44BA-9950-F6E8147B6A4A/InstapaperPro.app/InstapaperPro | |
Identifier: InstapaperPro | |
Version: ??? (???) | |
Code Type: ARM (Native) | |
Parent Process: launchd [1] |
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
#ifdef MOLocalizationTable | |
#define MOLocalizedString(key, default) \ | |
[[NSBundle mainBundle] localizedStringForKey:(key) value:(default) table:MOLocalizationTable] | |
#else | |
#define MOLocalizedString(key, default) \ | |
[[NSBundle mainBundle] localizedStringForKey:(key) value:(default) table:nil] | |
#endif |
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
@interface Restaurant : NSObject | |
+ (Restaurant)restaurant; | |
@end |
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
+ (MySingleton *)sharedSingleton | |
{ | |
static dispatch_once_t pred; | |
static MySingleton *instance = nil; | |
dispatch_once(&pred, ^{ instance = [[self alloc] init]; }); | |
return instance; | |
} |
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
NSArray *familyNames = [UIFont familyNames]; | |
for (NSString *familyName in familyNames) | |
{ | |
NSLog(@"Family: %@\n", familyName); | |
NSArray *fontNames = [UIFont fontNamesForFamilyName:familyName]; | |
for (NSString *fontName in fontNames) | |
{ | |
NSLog(@"\tFont: %@\n", fontName); | |
} | |
} |
NewerOlder