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
export DEVELOPER_DIR="/Applications/XCode.app/Contents/Developer" | |
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/PrivateFrameworks/DTDeviceKit.framework/Versions/A/Resources/symbolicatecrash -A -v [crashlog-filename] MyApp.dSYM |
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 os | |
from email.mime.text import MIMEText | |
from email.MIMEMultipart import MIMEMultipart | |
from email.MIMEBase import MIMEBase | |
from email import Encoders | |
msg = MIMEMultipart() | |
msg['Subject'] = "A subject" | |
msg['From'] = "[email protected]" | |
msg['To'] = "[email protected]" |
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
+ (NSString *)sinceStringForDate:(NSDate *)date longFormat:(BOOL)longFormat | |
{ | |
NSTimeInterval sinceNow = -[date timeIntervalSinceNow]; | |
NSString *num = @""; | |
NSString *units = @""; | |
const NSTimeInterval ONE_MIN = 60; | |
const NSTimeInterval ONE_HOUR = ONE_MIN * 60; | |
const NSTimeInterval ONE_DAY = ONE_HOUR * 24; | |
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
// Transition duration between changing content view controllers | |
// Default: 0.0 | |
@property (nonatomic, assign) NSTimeInterval contentViewControllerAnimationDuration; | |
// Animation option for setting content view controller | |
// Default: 0 | |
@property (nonatomic, assign) NSInteger contentViewControllerAnimationOption; |
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
+ (UIImage *)iconImageFrom:(VKColoredAssetConfigObject *)iconObject | |
{ | |
UIImage *maskImage = iconObject.maskImage; | |
UIImage *overlayImage = iconObject.overlayImage; | |
CGSize size = maskImage.size; | |
CGFloat scale = [[UIScreen mainScreen] scale]; | |
CGRect rect = CGRectMake(0.0, 0.0, size.width * scale, size.height * scale); | |
CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceRGB(); | |
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
Pod::Spec.new do |s| | |
s.name = 'ZipKit' | |
s.version = '0.0.2' | |
s.license = { :type => 'BSD', :file => 'COPYING.TXT' } | |
s.summary = 'An Objective-C Zip framework for Mac OS X and iOS.' | |
s.homepage = 'https://bitbucket.org/kolpanic/zipkit/wiki/Home' | |
s.author = { 'Karl Moskowski' => '[email protected]' } | |
s.source = { :hg => 'https://bitbucket.org/kolpanic/zipkit', :revision => '29f9e00f56' } |
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
NBALiveGameRadioStateLocationServicesNotAuthorized, | |
NBALiveGameRadioStateLocationServicesNotEnabled, | |
NBALiveGameRadioStateLocationUnknown, | |
NBALiveGameRadioStateNotWithinBarclaysCenter, | |
NBALiveGameRadioStateWithinBarclaysCenter, | |
/// ANother one for the game not live yet, so radio hasn't started streaming ??? This might not be one. Will find out in the call |
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
- (UITableViewCellEditingStyle)tableView:(UITableView *)tableView editingStyleForRowAtIndexPath:(NSIndexPath *)indexPath | |
{ | |
return UITableViewCellEditingStyleDelete; | |
} | |
- (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath | |
{ | |
return YES; | |
} |
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
Team, | |
Here is the newest version of the Barclays Center In Suite app | |
New Features: | |
- Live Game Feature (feature is only available on game day 3 hours before game start until the end of the game) | |
- Web Browser | |
- Transport/MTA Feed with Car Service | |
- Wall Street Journal RSS Feed and Reader |
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
self.containerView.layer.shouldRasterize = YES; | |
self.containerView.layer.rasterizationScale = [[UIScreen mainScree] scale]; |
OlderNewer