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 'yaml' | |
require 'uri' | |
require 'tempfile' | |
require 'tmpdir' | |
SDK_DIR = "/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk" | |
TESTFLIGHT_URL = 'http://testflightapp.com/api/builds.json' | |
PROJECT_DIR = File.dirname __FILE__ | |
RUBIOS_DIR = File.join(PROJECT_DIR, 'rubios') |
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
Feature: Demonstrating the touchx:y: api | |
Background: | |
Given I launch the app | |
Scenario: Add test user | |
# about where "Larry Stooge" row should be in main screen | |
When I touch the screen at (80,90) | |
Then I wait to see a navigation bar titled "User Profile" | |
And I should see "Larry" |
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
__block SignInController* _signInController; | |
__block UITextField* _emailTextField; | |
__block UITextField* _passwordTextField; | |
__block UIGradientButton* _signInButton; | |
__block UIView* _signingInView; | |
__block UILabel* _signedInLabel; | |
beforeEach(^{ | |
_signInController = [[SignInController new] autorelease]; | |
_emailTextField = [[UITextField new] autorelease]; |
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 AClass (ACategory) | |
@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 "MyClassWithFakePrivateProperties.h" | |
@interface MyClassWithFakePrivateProperties () | |
@property (nonatomic, strong) NSString *foo; | |
@end | |
@implementation MyClassWithFakePrivateProperties |
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 NSObject (Swizzle) | |
+ (void)swizzleInstanceSelector:(SEL)originalSelector | |
withNewSelector:(SEL)newSelector; | |
@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
package myapp.resource; | |
import com.google.inject.ImplementedBy; | |
import myapp.Post; | |
@ImplementedBy(PostResourceImpl.class) | |
public interface PostResource extends Resource<Post> { | |
} |
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
#station-ident { | |
padding: 10px; | |
margin: 10px 30px; | |
text-align: justify; | |
line-height: 26px; | |
font-size: 18px; | |
font-family: palatino, "times new roman", serif; | |
font-style: italic; | |
} |
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
tell application "System Events" | |
if process "ScreenSaverEngine" exists then | |
tell application "ScreenSaverEngine" to quit | |
else | |
do shell script "/System/Library/Frameworks/ScreenSaver.framework/Resources/ScreenSaverEngine.app/Contents/MacOS/ScreenSaverEngine -background > /dev/null 2>&1 &" | |
end if | |
end tell |
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
// getting the window of an iframe | |
receiver = document.getElementById('frameId').contentWindow; | |
// opening a named window to another application | |
receiver = window.open('http://anotherdomain.dev/path', 'myPopup'); | |
// getting a named window WITHOUT loading any content | |
receiver = window.open(null, 'myPopup'); |
OlderNewer