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
@implementation NSBundle (MYBundle) | |
+ (instancetype)MYBundle{ | |
NSBundle *mainBundle = [NSBundle mainBundle]; | |
NSURL *bundleUrl = [mainBundle URLForResource:@"MyBundle" withExtension:@"bundle"]; | |
NSBundle *bundle = [NSBundle bundleWithURL:bundleUrl]; | |
return bundle; | |
} | |
+ (UIImage*)imageNamed:(NSString*)name{ | |
UIImage *image; |
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 'mechanize' | |
if ARGV.size < 3 | |
puts %q{Usage: ruby xcode.rb USERNAME PASSWORD "DOWNLOAD_URL" [WGET_PARAMS]} | |
puts %q{Example: ruby xcode.rb [email protected] 123456 "https://developer.apple.com/devcenter/download.action?path=/Developer_Tools/xcode_4_and_ios_sdk_4.3__final/xcode_4_and_ios_sdk_4.3__final.dmg" } | |
exit | |
end | |
a = Mechanize.new { |agent| |
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
# remove_CLI_tools.sh | |
# written by cocoanetics:http://www.cocoanetics.com/2012/07/you-dont-need-the-xcode-command-line-tools/ | |
# modified by yoneken | |
#!/bin/sh | |
RECEIPT_FILE1=/var/db/receipts/com.apple.pkg.DevSDK.bom | |
RECEIPT_PLIST1=/var/db/receipts/com.apple.pkg.DevSDK.plist | |
RECEIPT_FILE2=/var/db/receipts/com.apple.pkg.clang.bom | |
RECEIPT_PLIST2=/var/db/receipts/com.apple.pkg.clang.plist |