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
#!/usr/bin/env ruby | |
# | |
# ExtractStoryboardIdentifiers.rb | |
# | |
# By Eric Baker. | |
# 25/August/2015 | |
# | |
# Call this script from a Run Script build phase: |
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
#!/usr/bin/ruby | |
# Call via a run script build phase: | |
# | |
# ${SRCROOT}/IncrementBuildNumber.rb | |
# | |
require 'fileutils' | |
require 'pathname' |
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
typedef void (^PaintCodeSourceBlock)(); | |
@implementation PaintCodeDrawableImages | |
+ (UIImage *)drawImageWithSize:(CGSize)size paintCodeSource:(PaintCodeSourceBlock)paintCodeSourceBlock | |
{ | |
// Begin the image context. | |
UIGraphicsBeginImageContextWithOptions(size, NO, 0.0f); | |
// Draw the paint code 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
#import <UIKit/UIKit.h> | |
@interface UIColor (AppleCrayons) | |
+ (UIColor *)cantaloupeColor; | |
+ (UIColor *)honeydewColor; | |
+ (UIColor *)spindriftColor; | |
+ (UIColor *)skyColor; | |
+ (UIColor *)lavenderColor; | |
+ (UIColor *)carnationColor; |
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
#!/usr/bin/env ruby | |
# gist: https://gist.github.com/3217498 | |
# This script can be called from an Xcode 'Run Script' build phase at the | |
# beginning of the build process, like this: | |
# | |
# ${PROJECT_DIR}/LocalizeStringsFromAndroid.rb ${PROJECT_NAME} | |
# | |
# This script should be placed in the same directory as your .xcodeproj |