Skip to content

Instantly share code, notes, and snippets.

View philosopherdog's full-sized avatar

Steve Thompson philosopherdog

View GitHub Profile
@philosopherdog
philosopherdog / gist:7989106
Last active December 31, 2015 12:49
.gitignore Xcode
#########################
# http://stackoverflow.com/questions/49478/git-ignore-file-for-xcode-projects
# .gitignore file for Xcode4 and Xcode5 Source projects
#
# Apple bugs, waiting for Apple to fix/respond:
#
# 15564624 - what does the xccheckout file in Xcode5 do? Where's the documentation?
#
# Version 2.1
# For latest version, see: http://stackoverflow.com/questions/49478/git-ignore-file-for-xcode-projects
@philosopherdog
philosopherdog / solarizedlight.xml
Last active August 29, 2015 13:55
solarized light
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>DVTConsoleDebuggerInputTextColor</key>
<string>0 0 0 1</string>
<key>DVTConsoleDebuggerInputTextFont</key>
<string>Menlo-Bold - 11.0</string>
<key>DVTConsoleDebuggerOutputTextColor</key>
<string>0 0 0 1</string>
@philosopherdog
philosopherdog / solarizeddark.xml
Last active August 29, 2015 13:55
solarized dark
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>DVTConsoleDebuggerInputTextColor</key>
<string>0 0 0 1</string>
<key>DVTConsoleDebuggerInputTextFont</key>
<string>Menlo-Bold - 11.0</string>
<key>DVTConsoleDebuggerOutputTextColor</key>
<string>0 0 0 1</string>
@philosopherdog
philosopherdog / gitconfig
Created April 4, 2015 02:26
araxis merge gitconfig os x
[difftool]
prompt = false
[diff]
tool = araxis
[merge]
tool = araxis
[mergetool "araxis"]
path = /Applications/Araxis Merge.app/Contents/Utilities/compare
prompt = false
keepTemporaries = false
@philosopherdog
philosopherdog / SATCoreData.h
Last active April 14, 2016 16:05
Core Data Moved To External Files in Objective-C
#import <Foundation/Foundation.h>
@import CoreData;
@interface SATCoreData : NSObject
@property (readonly, strong, nonatomic) NSManagedObjectContext *managedObjectContext;
@property (readonly, strong, nonatomic) NSManagedObjectModel *managedObjectModel;
@property (readonly, strong, nonatomic) NSPersistentStoreCoordinator *persistentStoreCoordinator;
- (void)saveContext;
- (NSURL *)applicationDocumentsDirectory;
@property (nonatomic) NSString *nameOfPersistentStore; // required
@philosopherdog
philosopherdog / NSScanner+Swift.swift
Created November 8, 2015 03:21 — forked from natecook1000/NSScanner+Swift.swift
Swift-friendly NSScanner methods
// NSScanner+Swift.swift
// A set of Swift-idiomatic methods for NSScanner
//
// (c) 2015 Nate Cook, licensed under the MIT license
import Foundation
extension NSScanner {
// MARK: Strings
@philosopherdog
philosopherdog / nsurlsession.swift
Last active November 24, 2015 16:27
simple nsurlsession playground
import UIKit
import XCPlayground
XCPlaygroundPage.currentPage.needsIndefiniteExecution = true
NSURLSession.sharedSession().dataTaskWithURL(NSURL(string: "http://www.cocoanutmobile.com")!)
{ data, response, error in
guard error == nil else {
print(error?.localizedDescription)
return
@philosopherdog
philosopherdog / .gitignore_global
Last active March 7, 2019 04:19
setup gitignore_global for Xcode
# Xcode
#
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore
## Build generated
build/
DerivedData/
## Various settings
*.pbxuser
@philosopherdog
philosopherdog / DataManager.swift
Created May 15, 2016 19:37
Core Data Stack External Singleton
//
// DataManager.swift
// SplitWithCoreData
//
// Created by steve on 2016-05-15.
// Copyright © 2016 steve. All rights reserved.
//
import Foundation
import CoreData
Install Parse to Heroku