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
/* -------------------------------------------- | |
Espresso tutti colori with Coffee.css | |
Version: 0.0.4 | |
Author: Jun Tanaka | |
URL: https://gist.github.com/2652784 | |
Copyright: 2012 Jun Tanaka | |
@theme Espresso tutti colori with Coffeeby Jun Tanaka |
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
/* -------------------------------------------- | |
Espresso.sss | |
Espresso theme for Coda 2 | |
Version: 0.0.3 | |
Author: Jun Tanaka | |
URL: https://gist.github.com/2780176 | |
Copyright: 2012 Jun Tanaka |
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
/* -------------------------------------------- | |
Xcode.sss | |
Xcode default theme for Coda 2 | |
Version: 0.0.1 | |
Author: Jun Tanaka | |
URL: https://gist.github.com/2785451 | |
Copyright: 2012 Jun Tanaka |
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
- (void)scrollViewDidZoom:(UIScrollView *)scrollView | |
{ | |
UIEdgeInsets inset = self.originalInset; | |
if (scrollView.zoomScale < 1) { | |
inset.top += scrollView.bounds.size.height - scrollView.contentSize.height; | |
inset.left += scrollView.bounds.size.width - scrollView.contentSize.width; | |
inset.bottom += scrollView.bounds.size.height - scrollView.contentSize.height; | |
inset.right += scrollView.bounds.size.width - scrollView.contentSize.width; | |
} |
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> | |
extern id KeyedOperationQueueCreateUniqueKey(); | |
@interface KeyedOperationQueue : NSOperationQueue | |
@property (nonatomic, readonly) NSDictionary *operationsForKeys; | |
- (void)addOperation:(NSOperation *)operation forKey:(id)key; |
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 UIView (Export) | |
- (UIImage *)exportAsImageWithScale:(CGFloat)scale; | |
@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 <Foundation/Foundation.h> | |
@interface NSObject (ResponderBlock) | |
- (id)responderBlockForSelector:(SEL)selector; | |
- (void)setResponderBlock:(id)block forSelector:(SEL)selector; | |
@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
if [ $CONFIGURATION == Release ]; then | |
echo "Bumping build number..." | |
plist=${PROJECT_DIR}/${INFOPLIST_FILE} | |
# increment the build number (ie 115 to 116) | |
buildnum=$(/usr/libexec/PlistBuddy -c "Print CFBundleVersion" "${plist}") | |
if [[ "${buildnum}" == "" ]]; then | |
echo "No build number in $plist" | |
exit 2 | |
fi |
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
for file in "$@" | |
do | |
ffmpeg -i "$file" -pix_fmt rgb24 -f gif - | gifsicle --optimize=3 --delay=3 > "${file%.*}.gif" | |
done |
OlderNewer