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
# OS X temporary files | |
.DS_Store | |
*.swp | |
*.lock | |
profile | |
# XCode user data | |
xcuserdata | |
# Cocoapods |
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
# OS X temporary files | |
.DS_Store | |
*.swp | |
*.lock | |
profile | |
# Compiled classes | |
*class | |
*dex |
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
gem "cocoapods", "~> 0.19.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
platform :ios, '6.0' | |
inhibit_all_warnings! | |
pod 'ObjectiveSugar' | |
pod 'MBLogging', :git => 'https://github.com/bananita/MBLogging.git', :tag => '0.1.0' | |
target :tests, :exclusive => true do | |
pod 'OCMock' | |
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
// | |
// ApplicationContext.h | |
// | |
// Created by Michał Banasiak on 22.07.2013. | |
// Copyright (c) 2013 Michał Banasiak. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> | |
@interface ApplicationContext : NSObject |
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 *fontFamilyNames = [UIFont familyNames]; | |
for (NSString *familyName in fontFamilyNames) | |
{ | |
NSLog(@"Font Family Name: %@", familyName); | |
NSArray *names = [UIFont fontNamesForFamilyName:familyName]; | |
NSLog(@"Font Names:\n %@", names); | |
} |
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
render text: Kramdown::Document.new(Base64.decode64 Octokit.readme('bananita/mbfaker').content.to_s).to_html | |
GitHub::Markdown.render_gfm(Base64.decode64 Octokit.readme('bananita/mbfaker').content.to_s) | |
CodeRay.scan(GitHub::Markdown.render_gfm(Base64.decode64 Octokit.readme('bananita/mbfaker').content.to_s), :objc).div(:line_numbers => :table) |
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
1. Create a folder called Payload | |
2. Place the .app folder inside of that | |
3. Zip up the Payload folder using normal compression | |
4. Then rename the file with a .ipa extension |
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
git pull && git submodule init && git submodule update && git submodule status |
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
@implementation ChildManagedObjectContext | |
- (BOOL)save:(NSError *__autoreleasing *)error | |
{ | |
NSError* superError; | |
BOOL superResult = [super save:&superError]; | |
if (!superResult) { | |
*error = superError; | |
return NO; |
OlderNewer