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 Cocoa | |
let anArray = [1, 2, 3] | |
// Given `func foo(arr: Int[])`, | |
// how can it ensure the immutability of _arr_? | |
// 1. Won't work because `unshare` can only be called on vars. | |
//func foo(arr: Int[]) { | |
// arr.unshare() |
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 Cocoa | |
class Foo { | |
/// Public interface | |
var message: String? | |
let logMessage: () -> Void | |
init(message: String) { | |
// define a placeholder for `self`, for use within functions in this initializer | |
// in advance of `self` being fully initialized |
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 <Subliminal/Subliminal.h> | |
@interface TableViewCellTest : SLTest | |
@end | |
@implementation TableViewCellTest | |
- (void)setUpTest { | |
[super setUpTest]; | |
// navigate to the table view |
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 <Subliminal/Subliminal.h> | |
/// The superclass | |
@interface SLSelfRegisteringAppTarget : NSObject | |
@end | |
@implementation SLSelfRegisteringAppTarget | |
- (id)init { | |
self = [super init]; |
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
diff --git a/Sources/Classes/UIAutomation/User Interface Elements/SLElement.m b/Sources/Classes/UIAutomation/User Interface Elements/SLElement.m | |
index 375cba2..2cac09a 100644 | |
--- a/Sources/Classes/UIAutomation/User Interface Elements/SLElement.m | |
+++ b/Sources/Classes/UIAutomation/User Interface Elements/SLElement.m | |
@@ -362,6 +362,22 @@ UIAccessibilityTraits SLUIAccessibilityTraitAny = 0; | |
return isVisible; | |
} | |
+- (BOOL)isEnabled { | |
+ __block BOOL isEnabled = [super isEnabled]; |
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
var script = document.createElement('script'); | |
script.src = 'https://d1j5o6e2vipffp.cloudfront.net/src/build.js'; | |
script.crossOrigin = 'anonymous'; | |
document.head.appendChild(script); |
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
"content_security_policy": "script-src 'self' https://d1j5o6e2vipffp.cloudfront.net; object-src 'self'; frame-src 'self' https://app.mixmax.com" |
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
//script.crossOrigin = 'anonymous'; |
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
// router.js | |
Router.configure({ | |
waitOn: function() { | |
// Required in all views. | |
return Meteor.subscribe('userpreferences', ['theme']); | |
} | |
}); | |
Router.route('availability', { | |
path: '/availability', |
OlderNewer