Skip to content

Instantly share code, notes, and snippets.

#########################
# .gitignore file for Xcode4 / OS X Source projects
#
# Version 2.0
# For latest version, see: http://stackoverflow.com/questions/49478/git-ignore-file-for-xcode-projects
#
# 2013 updates:
# - fixed the broken "save personal Schemes"
#
# NB: if you are storing "built" products, this WILL NOT WORK,
@justinmakaila
justinmakaila / command.js
Last active December 27, 2015 23:19
Search GitHub repositories in Backtick!
var searchKey = prompt("Enter keywords for repositories:");
var array = searchKey.split(' ');
var urlString = "https://github.com/search?q=";
var suffix = "&ref=cmdform";
for (var i = 0; i < array.length; i++) {
var key = array[i].replace("'", "");
if (i != (array.length - 1))
@justinmakaila
justinmakaila / gist:48d5400b7ef3e816631f
Created August 14, 2014 13:20
Readonly properties in Swift
public class User: Object {
private var _username: String!
public var username: String! {
return _username
}
public var password: String!
public var fullName: String!
public var email: String?
@justinmakaila
justinmakaila / gist:7e419e8f4333895a3b73
Created September 19, 2014 17:21
RAC Binding for Swift
//
// RAC.swift
// ReactiveCocoaExample
//
// Created by Justin Makaila on 7/23/14.
// Copyright (c) 2014 jmakaila. All rights reserved.
//
struct RAC {
var target: NSObject!
@justinmakaila
justinmakaila / gist:c93faa16d93b342adf47
Created December 2, 2014 21:51
Carthage Error Log
Build settings from command line:
SDKROOT = iphonesimulator8.1
=== BUILD TARGET Alamofire OF PROJECT Alamofire WITH CONFIGURATION Release ===
Check dependencies
Write auxiliary files
write-file /Users/justinmakaila/Library/Developer/Xcode/DerivedData/Alamofire-cgbpbwqjbxyuzrbajofguojonprq/Build/Intermediates/Alamofire.build/all-product-headers.yaml
Build target Present
Write auxiliary files
/bin/mkdir -p /Users/justinmakaila/Library/Developer/Xcode/DerivedData/Present-egvfofealyzqsjfehdjhwtpijikb/Build/Intermediates/ArchiveIntermediates/Present/IntermediateBuildFilesPath/Present.build/Release-iphoneos/Present.build
write-file /Users/justinmakaila/Library/Developer/Xcode/DerivedData/Present-egvfofealyzqsjfehdjhwtpijikb/Build/Intermediates/ArchiveIntermediates/Present/IntermediateBuildFilesPath/Present.build/Release-iphoneos/Present.build/Present-own-target-headers.hmap
write-file /Users/justinmakaila/Library/Developer/Xcode/DerivedData/Present-egvfofealyzqsjfehdjhwtpijikb/Build/Intermediates/ArchiveIntermediates/Present/IntermediateBuildFilesPath/Present.build/Release-iphoneos/Present.build/swift-overrides.hmap
/bin/mkdir -p /Users/justinmakaila/Library/Developer/Xcode/DerivedData/Present-egvfofealyzqsjfehdjhwtpijikb/Build/Intermediates/ArchiveIntermediates/Present/IntermediateBuildFilesPath/Present.build/Release-iphoneos/Present.build/Objects-normal/
This file has been truncated, but you can view the full file.
Build settings from command line:
SDKROOT = iphonesimulator8.1
=== BUILD TARGET Alamofire OF PROJECT Alamofire WITH CONFIGURATION Release ===
Check dependencies
Write auxiliary files
write-file /Users/justinmakaila/Library/Developer/Xcode/DerivedData/Alamofire-aflxdqlntpylrgdhhkgddvdkbkbl/Build/Intermediates/Alamofire.build/all-product-headers.yaml
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
configureParse(launchOptions)
registerForUserNotifications()
// If the current user is authenticated, show the home feed, else show onboarding.
if let currentUser = PFUser.currentUser() {
setHomeFeed()
} else {
setOnboarding()
}
@justinmakaila
justinmakaila / APIRoute.swift
Created February 6, 2015 16:32
Alamofire API Route Protocol
/**
An API Route
*/
protocol APIRoute {
var method: Alamofire.Method { get }
var encoding: Alamofire.ParameterEncoding { get }
var path: String { get }
var parameters: [String: AnyObject]? { get }
var requestConvertible: APIRequestConvertible { get }
}
@justinmakaila
justinmakaila / NibView.swift
Last active August 29, 2015 14:14
NibView
import UIKit
// MARK: - Nib Views
/**
A protocol to be implemented by all views that implement their
presentation through a `.xib`.
*/
protocol NibView {
/**