Skip to content

Instantly share code, notes, and snippets.

@trungtran
trungtran / Bash - Symbolicate iOS Crash with dSYM
Created December 5, 2012 20:21
iOS - Symbolicate Crash (Xcode 4.5.1)
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
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]"
+ (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;
// 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;
+ (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();
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' }
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
- (UITableViewCellEditingStyle)tableView:(UITableView *)tableView editingStyleForRowAtIndexPath:(NSIndexPath *)indexPath
{
return UITableViewCellEditingStyleDelete;
}
- (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath
{
return YES;
}
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
self.containerView.layer.shouldRasterize = YES;
self.containerView.layer.rasterizationScale = [[UIScreen mainScree] scale];