Skip to content

Instantly share code, notes, and snippets.

View Antol's full-sized avatar
🙃

Antol Antol

🙃
View GitHub Profile
@Antol
Antol / APResizableContainerView.m
Created November 26, 2014 22:00
Resizable container view
//
// Created by Antol Peshkov on 25.11.14.
// Copyright (c) 2014 restaurantTradition. All rights reserved.
//
#import "APResizableContainerView.h"
#import "Masonry.h"
@implementation APResizableContainerView
@Antol
Antol / APAspectFitImageView.h
Created October 16, 2014 21:29
UIImageView with aspect fit working with autolayout
//
// APAspectFitImageView.h
// autolayout
//
// Created by Antol Peshkov on 16.10.14.
// Copyright (c) 2014 Antol Peshkov. All rights reserved.
//
#import <UIKit/UIKit.h>
@Antol
Antol / gist:4363117
Created December 23, 2012 12:11
Cool technique in C++ for superclasses
class Object : public Node
{
private:
// It helps to typedef super & self so if you change the name
// of the class or super class, you don't have to replace all
// the references
typedef Node super;
typedef Object self;
}