- Clone repo
- Open project in Xcode
- Change 'Framework Search Paths' for your targets to '$(PLATFORM_DIR)/Developer/Library/Frameworks' value. (Link)
- Do all this things
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
/* | |
Category implementation | |
*/ | |
#import "UIViewController+Swizzle.h" | |
#import <objc/runtime.h> | |
@implementation UIViewController (Swizzle) | |
+ (void)load |
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
module PrintformBuilder | |
class Builder | |
attr_accessor :entity, :wb, :sheet, :s, :e | |
def initialize(wb, sheet, entity, s, e, &block) | |
@entity = entity | |
@wb = wb |
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
wb = xlsx_package.workbook | |
s_margins = | |
{ | |
left: 0.64/2.5, | |
right: 0.64/2.5, | |
top: 1.91/2.5, | |
bottom: 1.91/2.5, | |
header: 0.76/2.5, | |
footer: 0.76/2.5, |
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
describe(@"PBModelConverters", ^{ | |
__block PBRealmModelConverter *realmConverter = [[PBRealmModelConverter alloc] init]; | |
context(@"PBRealmModelConverter", ^{ | |
it(@"should not be nil after init", ^{ | |
[[realmConverter shouldNot] beNil]; | |
}); | |
it(@"should implements PBModelConverterProtocol", ^{ |
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
require 'wombat' | |
require 'json' | |
data = Wombat.crawl do | |
base_url "http://www.halykbank.kz/" | |
path "/" | |
rates "css=#home div.home-right div.rates table.rates-1 tr", :iterator do | |
rate "css=td", :list | |
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
require 'csv' | |
def parse(filename) | |
result_array = [] | |
current_record = {} | |
File.open(filename).each do |line| | |
# линия с '# name' в начале считается началом новой записи | |
if line.index('# name') == 0 | |
result_array << current_record unless current_record.empty? |
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
{ | |
countries: [ | |
{ | |
id: '{{index()+1}}', | |
name: '{{country()}}', | |
cities:[ | |
'{{repeat(5, 7)}}', | |
{ | |
id: '{{index()+1}}', | |
name: '{{city()}}', |
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
{ | |
categories: [ | |
'{{repeat(5)}}', | |
{ | |
id: '{{index()+1}}', | |
name: 'category {{index()+1}}', | |
logo: 'http://pbnew.otgroup.kz/assets/uploads/category_logos/{{index()}}.jpg', | |
organizations:[ | |
'{{repeat(5)}}', | |
{ |
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
#pragma mark environment definer start | |
typedef void(^voidBlock)(); | |
#define IS_TESTING_BUILD NO | |
#define IS_DEBUG_BUILD NO | |
#define IS_RELEASE_BUILD NO | |
/// TESTING_BUILD, DEBUG_BUILD and RELEASE_BUILD setted in Prepocessor macroses (target -> Build Settings) | |
#ifdef TESTING_BUILD | |
#undef IS_TESTING_BUILD |
OlderNewer