-
iOS 6.0 Library : https://devimages.apple.com.edgekey.net/docsets/20120919/com.apple.adc.documentation.AppleiOS6.0.iOSLibrary.xar
-
iOS 5.1 Library : http://devimages.apple.com/docsets/20120307/com.apple.adc.documentation.AppleiOS5_1.iOSLibrary.xar
-
iOS 5.0 Library : http://devimages.apple.com/docsets/20120109/com.apple.adc.documentation.AppleiOS5_0.iOSLibrary.xar
-
iOS 4.3 Library : http://devimages.apple.com/docsets/20110720/com.apple.adc.documentation.AppleiOS4_3.iOSLibrary.xar
-
iOS 4.2 Library : http://devimages.apple.com/docsets/20101122/com.apple.adc.documentation.AppleiOS4_2.iOSLibrary.Xcode4.xar
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
#!/bin/bash | |
buildPlist=${INFOPLIST_FILE} | |
bundleVersion=$(/usr/libexec/PlistBuddy -c "Print CFBundleVersion" $buildPlist) | |
buildNumber=$(/usr/libexec/PlistBuddy -c "Print CFBundleVersion" $buildPlist) | |
buildNumber=$(($buildNumber + 1)) | |
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion $buildNumber" $buildPlist |
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
// Recursive description | |
command regex rd 's/^[[:space:]]*$/po [[UIApp keyWindow] recursiveDescription]/' 's/^(.+)$/po [%1 recursiveDescription]/' | |
// Reveal | |
command alias reveal_load_sim expr (void*)dlopen("/Applications/Reveal.app/Contents/SharedSupport/iOS-Libraries/libReveal.dylib", 0x2); | |
command alias reveal_load_dev expr (void*)dlopen([(NSString*)[(NSBundle*)[NSBundle mainBundle] pathForResource:@"libReveal" ofType:@"dylib"] cStringUsingEncoding:0x4], 0x2); | |
command alias reveal_start expr (void)[(NSNotificationCenter*)[NSNotificationCenter defaultCenter] postNotificationName:@"IBARevealRequestStart" object:nil]; | |
command alias reveal_stop expr (void)[(NSNotificationCenter*)[NSNotificationCenter defaultCenter] postNotificationName:@"IBARevealRequestStop" object:nil]; |
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
# Generade ssh keys | |
ssh-keygen -t rsa | |
# Make sure the proper rights are set | |
chmod 700 ~/.ssh | |
# Append the public key to the remote hosts authorized keys | |
cat ~/.ssh/id_rsa.pub | ssh -l remoteuser remoteserver.com 'cat >> ~/.ssh/authorized_keys' | |
# You can now login on the remote server without pasword |
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
#!/bin/sh | |
# We get the path of the current directory and we move in it | |
DIR=$(cd "$(dirname "$0")"; pwd) | |
cd $DIR | |
# Creating full and thumbnails images folders | |
FULL_IMG="full" | |
THUMB_IMG="thumb" | |
mkdir $FULL_IMG |
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
# | |
# Be sure to run `pod spec lint Example.podspec.podspec' to ensure this is a | |
# valid spec. | |
# | |
# Remove all comments before submitting the spec. Optional attributes are commented. | |
# | |
# For details see: https://github.com/CocoaPods/CocoaPods/wiki/The-podspec-format | |
# | |
Pod::Spec.new do |s| | |
s.name = "Example.podspec" |
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
property kHoseyXcodeWarningSettings : { | |
{"GCC_WARN_CHECK_SWITCH_STATEMENTS", "YES"}, | |
{"GCC_WARN_SHADOW", "YES"}, | |
{"GCC_WARN_64_TO_32_BIT_CONVERSION", "YES"}, | |
{"GCC_WARN_INITIALIZER_NOT_FULLY_BRACKETED", "YES"}, | |
{"GCC_WARN_ABOUT_RETURN_TYPE", "YES"}, | |
{"GCC_WARN_MISSING_PARENTHESES", "YES"}, | |
{"GCC_WARN_ABOUT_MISSING_FIELD_INITIALIZERS", "YES"}, | |
{"GCC_WARN_ABOUT_MISSING_NEWLINE", "YES"}, | |
{"GCC_WARN_SIGN_COMPARE", "YES"}, |
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
/** | |
* Several macros simplifying use of weak references to self inside blocks | |
* which goal is to reduce risk of retain cycles. | |
* | |
* Version 2. Uses GCC statement expressions | |
* instead of capturing self via block closure. | |
* | |
* Example: | |
* @code | |
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
xc () { | |
workspaces=(`ls -d1 *.(xcworkspace|xcodeproj) | sed -e "s/\///g"`) &> /dev/null | |
filenames=(`ls -d1 *.(xcworkspace|xcodeproj) | sed -e "s/\..*$//g"`) &> /dev/null | |
if [[ ${#workspaces} = 0 ]] | |
then | |
echo "No Xcode projects or workspaces were found." | |
return | |
fi | |
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
// As a local variable. | |
returnType (^blockName)(parameterTypes) = ^returnType(parameters) {...}; | |
// As a property. | |
@property (nonatomic, copy) returnType (^blockName)(parameterTypes); | |
// As a method parameter. | |
- (void)someMethodThatTakesABlock:(returnType (^)(parameterTypes))blockName {...} | |
// As an argument to a method call. |
OlderNewer