This file contains hidden or 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 javax.swing.*; | |
import java.awt.event.*; | |
import java.awt.*; | |
import java.io.*; | |
import java.net.*; | |
import javax.swing.event.*; | |
public class Internet extends JFrame | |
{ | |
final JDesktopPane theDesktop; |
This file contains hidden or 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
--- | |
- name: Launch new instances | |
local_action: | |
module: ec2 | |
aws_access_key: "{{ aws_access_key }}" | |
aws_secret_key: "{{ aws_secret_key }}" | |
region: "{{ ec2_region }}" | |
keypair: "{{ ec2_keypair }}" | |
group: "{{ ec2_group }}" |
This file contains hidden or 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 "UISplitViewControllerDelegateService.h" | |
#import "NoteViewController.h" | |
@interface UISplitViewControllerDelegateService () <UISplitViewControllerDelegate> | |
@end | |
@implementation UISplitViewControllerDelegateService | |
- (id)initWithSplitViewController:(UISplitViewController *)controller { |
This file contains hidden or 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 "AppDelegate.h" | |
@interface AppDelegate () | |
@property (strong, nonatomic) NSManagedObjectContext *managedObjectContext; | |
@property (strong, nonatomic) GCDWebServer *webServer; | |
@end | |
@implementation AppDelegate |
This file contains hidden or 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 "AppDelegate.h" | |
#import "AppCoordinator.h" | |
@interface AppDelegate () | |
@property (strong, nonatomic) AppCoordinator *coordinator; | |
@end | |
@implementation AppDelegate |
This file contains hidden or 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
@implementation MyViewController | |
+ (BSInitializer *)bsInitializer { | |
return [BSInitializer initializerWithClass:self | |
selector:@selector(initWithApi:) | |
argumentKeys:@"myApi", nil]; | |
} | |
- (instancetype)initWithApi:(MyApi *)myApi { | |
... |
This file contains hidden or 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
JSObjectionInjector *injector = [JSObjection createInjector]; | |
[injector bindBlock:^(JSObjectionInjector *context) { | |
MyModel *model = [[MyModel alloc] initWithDependency:context.getObject([Dependency class])]; | |
return model; | |
} toClass:[MyModel class]]; | |
id myModel = [injector getObject:[MyModel class]]; |
This file contains hidden or 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
@implementation ExampleAssembly | |
- (MyModel *)model { | |
return [TyphoonDefinition withClass:[MyModel class] | |
configuration:^(TyphoonDefinition* definition) { | |
[definition useInitializer:@selector(initWithDependency:) | |
parameters:^(TyphoonMethod *initializer) { | |
[initializer injectParameterWith:[self exampleDependency]]; |
This file contains hidden or 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 CoordinatorAssembly | |
@property (strong, nonatomic) DependencyOne *existingInjectedDependency; | |
- (DependencyTwo *)newDependency; | |
- (MyModel *)modelThatIsInjectedWithBothDependencies; | |
@end |
This file contains hidden or 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)showNoteSplitViewWithDataController:(DataController *)dataController searchController:(SearchController *)searchController { | |
NSParameterAssert(dataController); | |
NSParameterAssert(searchController); | |
NSString *authenticatedUserId = self.applicationSessionCredentialStore.userId; | |
NoteSplitViewAssembly *assembly = [self.assembly noteSplitViewAssemblyWithApplicationSession:self.applicationSession dataController:dataController searchController:searchController authenticatedUserId:authenticatedUserId]; | |
[assembly activate]; |