This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[user] | |
email = [email protected] | |
name = Jordan Zucker | |
[alias] | |
cm = commit -m | |
swap = checkout - | |
lc = log ORIG_HEAD.. --stat --no-merges | |
mkbr = checkout -b | |
sm = submodule update --init --recursive | |
llog = log --date=local |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Mac | |
.DS_Store | |
# Xcode | |
# | |
build/ | |
*.pbxuser | |
!default.pbxuser | |
*.mode1v3 | |
!default.mode1v3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# bash/zsh completion support for core Git. | |
# | |
# Copyright (C) 2006,2007 Shawn O. Pearce <[email protected]> | |
# Conceptually based on gitcompletion (http://gitweb.hawaga.org.uk/). | |
# Distributed under the GNU General Public License, version 2.0. | |
# | |
# The contained completion routines provide support for completing: | |
# | |
# *) local and remote branch names | |
# *) local and remote tag names |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source 'https://github.com/CocoaPods/Specs.git' | |
xcodeproj '<XcodeProject>/<XcodeProject>.xcodeproj' | |
platform :ios, '8.0' | |
#pod 'AFNetworking', '~>2.5.2' | |
pod 'BlocksKit', '~>2.2.5' | |
pod 'CocoaLumberjack', '~> 2.0' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <Foundation/Foundation.h> | |
@interface Singleton : NSObject | |
+ (instancetype)sharedManager; | |
@end | |
@implementation Singleton | |
+ (instancetype)sharedInstance { | |
static Singleton *sharedInstance = nil; | |
static dispatch_once_t onceToken; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@interface PNHistoryResult : PNResult | |
@property (nonatomic) NSDate *start; | |
@property (nonatomic) NSDate *end; | |
@end | |
// no methods on any of these subclasses | |
@interface PNHereNowResult : PNResult | |
@property (nonatomic) NSInteger occupancy; | |
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# set up destination for screenshots | |
mkdir ~/Screenshots; defaults write com.apple.screencapture location ~/Screenshots; killall SystemUIServer; echo "Desktop clutter begone" | |
# this adds a recently used applications stack to the dock | |
defaults write com.apple.dock persistent-others -array-add '{ "tile-data" = { "list-type" = 1; }; "tile-type" = "recents-tile"; }'; killall Dock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
self.subscribeExpectation = [self expectationWithDescription:@"network"]; | |
[self.client subscribeToChannels:@[@"a", @"b"] withPresence:YES]; | |
[self.client subscribeToChannels:@[@"c"] withPresence:NO]; | |
[self waitForExpectationsWithTimeout:10 handler:^(NSError *error) { | |
if (error) { | |
NSLog(@"error: %@", error); | |
XCTFail(@"what went wrong?"); | |
} | |
}]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (void)weak_testHereNow { | |
self.testExpectation = [self expectationWithDescription:@"network"]; | |
[self.client hereNowWithCompletion:^(PNPresenceGlobalHereNowResult *result, PNErrorStatus *status) { | |
XCTAssertNil(status); | |
XCTAssertEqual([result operation], PNHereNowGlobalOperation, @"Wrong operation"); | |
XCTAssertNotNil([result data]); | |
XCTAssertEqual([result statusCode], 200); | |
[self.testExpectation fulfill]; | |
}]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# It's good practice to include the Pod source in your Podfile | |
source 'https://github.com/CocoaPods/Specs.git' | |
# specify platform and target OS version | |
platform :ios, '7.0' | |
# this would be the relative path of your app, whatever that may be | |
xcodeproj 'SimplePubSub/SimplePubSub.xcodeproj' | |
# this is the relative location of your workspace, I prefer to explicity |
OlderNewer