- June 23rd 1pm - 6pm
- June 24 - 28th, 11am - 12pm
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
require 'rubygems' | |
require 'data_mapper' | |
require 'dm-timestamps' | |
require 'active_support/core_ext' | |
DataMapper::Model.raise_on_save_failure = true | |
class User | |
include DataMapper::Resource | |
property :id, String, :default => lambda {|r,p| SecureRandom.uuid}, :key=>true | |
property :givenName, String, :length => 255, :default => "" | |
property :surname, String, :length => 255, :default => "" |
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
# Sublime Text 2 Plugin to generate a UUID in place. | |
# I used this to build out a sample data file with dependable UUID's for testing purposes. | |
import sublime, sublime_plugin, uuid | |
class GenerateUuidCommand(sublime_plugin.TextCommand): | |
def run(self, edit): | |
for s in self.view.sel(): | |
if s.empty(): | |
self.view.insert(edit, s.b, str(uuid.uuid4()) |
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 sublime, sublime_plugin, uuid | |
class GenerateUuidCommand(sublime_plugin.TextCommand) | |
def run(self, edit): | |
for s in self.view.sel(): | |
if (s.empty()) | |
self.view.insert(edit, s.b, str(uuid.uuid4())) |
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
// | |
// PWPDFToolbar.m | |
// passageways | |
// | |
// Created by Jonathan Nolen on 1/23/13. | |
// Copyright (c) 2013 Developertown. All rights reserved. | |
// | |
#import "PWPDFToolbar.h" | |
#import <PSPDFKit/PSPDFKit.h> |
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
// | |
// UserCoreDataAnnotationProvider.m | |
// BoardRoom | |
// | |
// Created by Jonathan Nolen on 3/2/13. | |
// | |
// | |
#import "UserCoreDataAnnotationProvider.h" | |
#import "Annotation.h" |
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 CachedAnnotation : NSObject | |
@property (nonatomic, strong) NSManagedObjectID *objectId; | |
@property (nonatomic, strong) PSPDFAnnotation *annotation; | |
+(CachedAnnotation *)cachedAnnotationWithCoreDataAnnotation:(Annotation *)annotation; | |
+(CachedAnnotation *)cachedAnnotationWithObjectId:(NSManagedObjectID *)objectId nativeAnnotation:(PSPDFAnnotation *)annotation; | |
@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
#import <ReactiveCocoa/ReactiveCocoa.h> | |
@interface rac_signal_testTests: SenTestCase | |
@end | |
@implementation rac_signal_testTests | |
- (void)setUp | |
{ | |
[super setUp]; |
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 <ReactiveCocoa/ReactiveCocoa.h> | |
#import <SenTestingKit/SenTestingKit.h> | |
@interface rac_signal_testTests : SenTestCase | |
@end | |
@implementation rac_signal_testTests | |
-(void)test_willDeallocSignal_applied_to_strong_reference_works_as_expected_with_local_weak_reference{ | |
id val = [@{} mutableCopy]; |
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
// An object that will run a piece of code every <<interval>> seconds while the application has connectivity to the network, | |
// automatically pauses the loop when isNetworkReachable is false. | |
#import <ReactiveCocoa/ReactiveCocoa.h> | |
#import <ReactiveCocoa/NSNotificationCenter+RACSupport.h> | |
@interface PWOfflineUpdater : NSObject | |
-(id)initWithUpdateInterval:(NSTimeInterval)interval targetOperationQueue:(NSOperationQueue *)queue; |
OlderNewer