Skip to content

Instantly share code, notes, and snippets.

for file in *.png
do
mv "$file" "${file/old_string/new_string}"
done
self.containerView.layer.shouldRasterize = YES;
self.containerView.layer.rasterizationScale = [[UIScreen mainScree] scale];
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
- (UITableViewCellEditingStyle)tableView:(UITableView *)tableView editingStyleForRowAtIndexPath:(NSIndexPath *)indexPath
{
return UITableViewCellEditingStyleDelete;
}
- (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath
{
return YES;
}
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
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' }
+ (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();
// 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;
+ (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;
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]"