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
#pragma mark - Action sheet delegate | |
- (void)willPresentActionSheet:(UIActionSheet *)actionSheet { | |
for( UIView *subview in actionSheet.subviews ) { | |
if( [subview isKindOfClass:[UIButton class]] ) { | |
UIButton *button = (UIButton *)subview; | |
[button setTitleColor:[UIColor mainTintColor] forState:UIControlStateNormal]; | |
[button setTitleColor:[UIColor mainTintColor] forState:UIControlStateHighlighted]; | |
[button setTitleColor:[UIColor mainTintColor] forState:UIControlStateSelected]; | |
} |
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
#pragma mark - Rearrange the subviews | |
- (void)setFrame:(CGRect)frame { | |
[super setFrame:frame]; | |
[self arrangeSubviews]; | |
} | |
- (void)arrangeSubviews { | |
// Cover image frame |
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
#!/bin/sh | |
# We need an install path | |
if [ $# != 1 ]; then | |
echo "Usage: wordpress.sh <install-path>" | |
exit 1 | |
fi | |
# Fix the path if it's relative | |
given_path=$1 |
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
/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user |
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
#!/bin/sh | |
## | |
# Install autoconf, automake and libtool smoothly on Mac OS X. | |
# Newer versions of these libraries are available and may work better on OS X | |
# | |
# This script is originally from http://jsdelfino.blogspot.com.au/2012/08/autoconf-and-automake-on-mac-os-x.html | |
# | |
export build=~/devtools # or wherever you'd like to build |
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
--Set the location for where your torrents download to | |
set torrentsLocation to "/Users/Jelly/Torrents" | |
--Set the location for where HandbrakeCLI lives | |
set handbrakeLocation to "/Applications/Utilities/HandBrakeCLI" | |
--Settings up some handlers… | |
on fileExists(posixFile) | |
try | |
if not (exists posixFile as alias) then return false | |
on error | |
return false |
NewerOlder