Skip to content

Instantly share code, notes, and snippets.

View isaldin's full-sized avatar
🏠
Working from home

SALDIN ILYA isaldin

🏠
Working from home
View GitHub Profile
  1. Clone repo
  2. Open project in Xcode
  3. Change 'Framework Search Paths' for your targets to '$(PLATFORM_DIR)/Developer/Library/Frameworks' value. (Link)
  4. Do all this things
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
describe(@"PBModelConverters", ^{
__block PBRealmModelConverter *realmConverter = [[PBRealmModelConverter alloc] init];
context(@"PBRealmModelConverter", ^{
it(@"should not be nil after init", ^{
[[realmConverter shouldNot] beNil];
});
it(@"should implements PBModelConverterProtocol", ^{
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,
module PrintformBuilder
class Builder
attr_accessor :entity, :wb, :sheet, :s, :e
def initialize(wb, sheet, entity, s, e, &block)
@entity = entity
@wb = wb
@isaldin
isaldin / gist:ad225ee839c69f99da7d
Last active August 29, 2015 14:02
[iOS SDK] override methods in runtime (Swizzling)
/*
Category implementation
*/
#import "UIViewController+Swizzle.h"
#import <objc/runtime.h>
@implementation UIViewController (Swizzle)
+ (void)load