Skip to content

Instantly share code, notes, and snippets.

View orta's full-sized avatar
🥂

Orta Therox orta

🥂
View GitHub Profile
@orta
orta / network-models.md
Last active August 29, 2015 13:56
Network models

Using a real artsy example from today.

Creating a follow button on a view controller for different types of objects Artist, Profile, Gene

Needs: networking Needs: layout Needs: interface changes based on networking

Networking

@orta
orta / ARAllViewControllers.m
Created February 16, 2014 17:42
Check all view controllers to see if they load the view on init
//
// ARAllViewControllers.m
// Artsy
//
// Created by Orta on 16/02/2014.
// Copyright (c) 2014 Art.sy. All rights reserved.
//
#import <XCTest/XCTest.h>
#import "ARClassGetSubclasses.h"
@orta
orta / gist:9550789
Created March 14, 2014 16:07
My fish doftfile
# Path to your oh-my-fish.
set fish_path $HOME/.oh-my-fish
set fish_plugins rvm bundler brew rake rails localhost objc autojump
set fish_theme idan
# Load oh-my-fish cofiguration.
. $fish_path/oh-my-fish.fish
@orta
orta / gist:9589737
Created March 16, 2014 20:51
Keybase
### Keybase proof
I hereby claim:
* I am orta on github.
* I am orta (https://keybase.io/orta) on keybase.
* I have a public key whose fingerprint is E91F 36B1 5554 2702 F46E E083 9F5E 5653 EE2A C266
To claim this, I am signing this object:
@orta
orta / .travis.yml
Created April 14, 2014 21:15
Artsy Travis File
language: objective-c
before_install: gem install xcpretty -N
script:
- set -o pipefail
- make ci
@orta
orta / gist:162b4152e6c2137de423
Created May 8, 2014 10:01
CocoaPods Licenses
9329 MIT
887 Apache License, Version 2.0
854 BSD
620 Commercial
255 zlib
247 Copyright
170 2-clause BSD
151 Apache
104 MIT License
102 Apache 2.0
@orta
orta / Mocta.md
Last active August 29, 2015 14:01
Mocks & Stubs in a Specta / Expecta world

Getting a Mocta object

NSUserDefaults<Mocta> *defaults = [Mocta objectWithClass:[NSUserDefaults class]];
id< UITableViewDelegate, MoctaStub> delegate = [Mocta objectWithProtocol:@protocol(UITableViewDelegate)];

Expectations

Expectations are ran on dealloc, or at the end of the test case, so I don't have to do it manually.

@orta
orta / example.md
Last active August 29, 2015 14:02
Pod Template Preview

Run this, switching MyLib to whatever.

pod lib create MyLib https://github.com/orta/pod-template

And it will pull in the next version of pod lib create. It's iOS only and very opinionated, it's more or less feature complete now, you should be able to go from pod lib create XXX to uploaded and on travis CI super super quick!

@orta
orta / Podfile
Created July 16, 2014 10:08
Local dev overrides
platform :ios, '7.0'
# Allows per-dev overrides
local_podfile = "Podfile.local"
eval(File.open(local_podfile).read) if File.exist? local_podfile
# Core
pod 'Mantle', '1.5'
pod 'AFNetworking', '1.3.4'
...
//
// UIViewController+PresentWithFrame.m
// Artsy
//
// Created by Orta on 8/8/14.
// Copyright (c) 2014 Artsy. All rights reserved.
//
#import "UIViewController+PresentWithFrame.h"