Skip to content

Instantly share code, notes, and snippets.

View osorioabel's full-sized avatar

Abel Osorio osorioabel

View GitHub Profile
@osorioabel
osorioabel / Coordinator.swift
Created March 17, 2017 13:15
Kogi Architecture Implementation
typealias CoordinatorsDictionary = [String: Coordinator]
protocol Coordinator: class {
var rootViewController: UIViewController { get }
func start()
}
extension Coordinator {
var name: String {
@osorioabel
osorioabel / gist:6226ed9b3bd2c8b1a3a288fd8e2b9f22
Created December 14, 2016 17:25
Variable-height UITableView tableHeaderView with autolayout
// in a UITableViewController (or any other view controller with a UITableView)
- (void)viewWillTransitionToSize:(CGSize)size withTransitionCoordinator:(id<UIViewControllerTransitionCoordinator>)coordinator
{
UIView *header = [[UIView alloc] initWithFrame:CGRectMake(0, 0, size.width, 0)];
header.translatesAutoresizingMaskIntoConstraints = NO;
// [add subviews and their constraints to header]
NSLayoutConstraint *headerWidthConstraint = [NSLayoutConstraint
@osorioabel
osorioabel / README.md
Last active August 29, 2015 14:13 — forked from oodavid/README.md

Deploy your site with git

This gist assumes:

  • you have a local git repo
  • with an online remote repository (github / bitbucket etc)
  • and a cloud server (Rackspace cloud / Amazon EC2 etc)
    • your (PHP) scripts are served from /var/www/html/
    • your webpages are executed by apache
  • apache's home directory is /var/www/

How to do codereview

Step 1: Context

Check what should have been done

Step 2: Git Changes

Check the related git commit

Step 3: Syntax Check

Check if the Dev use the right syntax and follow the styleguide

//
// UIColor+Hexadecimal.m
//
//
// Created by osorioabel on 16/7/14.
// Copyright (c) 2014 Abel Osorio. All rights reserved.
//
#import <UIKit/UIKit.h>
//
// UITextView+VerticalAlignment.h
// VerbalShoppingList
//
// Created by Tom Susel on 1/9/14.
//
#import <UIKit/UIKit.h>
@interface UITextView (VerticalAlignment)