Skip to content

Instantly share code, notes, and snippets.

View gbasile's full-sized avatar

Giuseppe Basile gbasile

View GitHub Profile
@samdods
samdods / UIView+NibLoading.swift
Last active July 31, 2018 21:07
This is the best way I've found to instantiate a view from a nib in Swift.
//
// UIView+NibLoading.swift
// Sam Dods on 29/10/2015.
//
import UIKit
/// Protocol to be extended with implementations
protocol UIViewLoading {}
@jkubicek
jkubicek / gist:9075340
Created February 18, 2014 17:17
My mogenerator rake task
desc 'Use Mogenerator to create Core Data models'
task :mogen do
`which mogenerator`
unless $?.success?
fail "This project requires mogenerator. See installation instructions"\
" at http://rentzsch.github.io/mogenerator/"
end
cmd = "mogenerator --template-var arc=true "\
"--model My_Project/Model.xcdatamodeld/Model.xcdatamodel/ "\
"--output-dir My_Project/Model/"
@dstnbrkr
dstnbrkr / Makefile
Last active September 25, 2017 00:22
The Makefile we use for continuous integration and distribution at Artsy.net
PROJECT = Artsy
BUNDLE_ID = net.artsy.artsy.beta
CONFIGURATION = Beta
WORKSPACE = $(PROJECT).xcworkspace
SCHEME = $(PROJECT)
APP_PLIST = $(PROJECT)/App/$(PROJECT)-Info.plist
IPA = $(PROJECT).ipa
DSYM = $(PROJECT).app.dSYM.zip