Ubuntu+Nginx+Unicorn+Rails+Capistrano — Gist
この記事から設定を例として抽出
定義更新する
require 'rubygems' | |
require 'mechanize' | |
if (ARGV[0] != '1' && ARGV[0] != '0') || (ARGV[0] == '1' && ARGV.size < 5) || (ARGV[0] == '0' && ARGV.size < 4) | |
puts %q{Usage: ruby xcode.rb HAS_MULTITEAM USERNAME PASSWORD TEAMID "DOWNLOAD_URL"} | |
puts %q{Example: ruby xcode.rb 0 myusername@apple.com 123456 "DOWNLOAD_URL" } | |
puts %q{Example: ruby xcode.rb 1 myusername@apple.com 123456 TEAMID "DOWNLOAD_URL" } | |
puts %q{DOWNLOAD_URL Example: https://developer.apple.com/devcenter/download.action?path=/Developer_Tools/xcode_6.1.1/xcode_6.1.1.dmg" } | |
exit | |
end |
Ubuntu+Nginx+Unicorn+Rails+Capistrano — Gist
この記事から設定を例として抽出
定義更新する
tell application "Xcode" | |
if (frontmost of it = false) then | |
return | |
end if | |
set documentList to source document of it | |
set listLength to count of documentList | |
if listLength is less than 1 then | |
return --no opened source file in working space | |
end if |
#import <Cocoa/Cocoa.h> | |
@interface CPSystemInformation : NSObject {} | |
//all the info at once! | |
+ (NSDictionary *)miniSystemProfile; | |
+ (NSString *)machineType; | |
+ (NSString *)humanMachineType; | |
+ (NSString *)humanMachineTypeAlternate; |
- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation { | |
NSLog(@"application:openURL: --- %@", url); | |
if([[url scheme] isEqualToString: [NSString stringWithFormat:@"sz%@", SSZ_APPLICATION_ID]]) | |
{ | |
NSString* entityKey = [[[url queryDictionary] objectForKey:@"url"]stringByReplacingPercentEscapesUsingEncoding: NSUTF8StringEncoding]; | |
if(entityKey) | |
{ | |
[Socialize entityLoaderBlock](nil, [SZEntity entityWithKey:entityKey]); |
Get it from http://developer.apple.com. You will not be able to submit apps to any stores using this XCode version, so turn away if that is something you might want to do.
In XCode's Preferences > Downloads you can install command line tools.
# /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Tools/RunPlatformUnitTests | |
# around line 93 | |
if [ "${TEST_HOST}" != "" ]; then | |
if [ "${RUN_SIMULATOR_TESTS}" = "YES" ]; then | |
export OTHER_TEST_FLAGS="-RegisterForSystemEvents" | |
RunTestsForApplication "${TEST_HOST}" "${TEST_BUNDLE_PATH}" | |
else | |
Warning ${LINENO} "Skipping tests; the iPhoneSimulator platform does not currently support application-hosted tests (TEST_HOST set)." |
function cdxcode() | |
{ | |
path="`osascript ~/Codes/scripts/cdxcode.scpt 2>/dev/null`" | |
if [ -n "$path" ]; then | |
echo "cd to $path" | |
cd "$path" | |
else | |
echo "no Xcode Project finded" | |
fi | |
} |