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
@class SCViewSlider; | |
@interface MainController : UIViewController { | |
@private | |
SCViewSlider *_viewSlider; | |
} | |
@property (nonatomic, retain) IBOutlet SCViewSlider *viewSlider; | |
@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
- (BOOL)peoplePickerNavigationController:(ABPeoplePickerNavigationController *) | |
peoplePicker shouldContinueAfterSelectingPerson:(ABRecordRef)person | |
property:(ABPropertyID)property identifier:(ABMultiValueIdentifier)identifier { | |
ABMultiValueRef emails = ABRecordCopyValue(person, property); | |
CFStringRef email = ABMultiValueCopyValueAtIndex(emails, identifier); | |
NSString *str = [textField text]; | |
if (![str isEqualToString:@""]) { |
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
/** | |
* This will convert DateTime (.NET) object serialized as JSON by WCF to a NSDate object. | |
*/ | |
+ (NSDate *)dateFromJSONTicks:(NSString *)inputString; |
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
<macrodef name="juicer"> | |
<attribute name="inputFile" /> | |
<!-- none|soft|rails|hard --> | |
<attribute name="cacheBuster" default="none" /> | |
<!-- none|data_uri --> | |
<attribute name="embedImages" default="data_uri" /> | |
<sequential> | |
<exec executable="juicer" failOnError="true" logError="true"> | |
<arg value="-v" /> | |
<arg value="merge" /> |
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
$ git config format.pretty "format:%C(auto)%h %s" |
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
pushd ~/.android/avd/$1.avd/ | |
sed -i .bak 's/\(window.[xy] = \)-*[0-9]*/\10/g' emulator-user.ini | |
popd | |
pushd ~/android-sdks/tools/ | |
if [ ! -z "$2" ]; then | |
emulator @$1 -scale $2 | |
else | |
emulator @$1 | |
fi | |
popd |
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
function changes() { | |
if [ "$1" = "show" ] | |
then | |
git log -n 10 --no-merges | |
elif [ "$1" = "get" ] | |
then | |
git pull --rebase | |
elif [ "$1" = "post" ] | |
then | |
git push |
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 your grep supports the -r or -R option for recursive search, use it. | |
grep -r word . | |
Otherwise, use the -exec primary of find. This is the usual way of achieving the same effect as xargs, except without constraints on file names. Reasonably recent versions of find allow you to group several files in a single call to the auxiliary command. Passing /dev/null to grep ensures that it will show the file name in front of each match, even if it happens to be called on a single file. | |
find . -type f -exec grep word /dev/null {} + | |
Older versions of find (on older systems or OpenBSD, or reduced utilities such as BusyBox) can only call the auxiliary command on one file at a time. |
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
I have got as far as: | |
git log -- [filename] | |
which shows me the commit history of the file, but how do I get at the content of each of the changes? | |
gitk [filename] | |
You can use |
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 f in *.m4a; do atomicparsley "$f" --artwork folder.jpg; done; rm !(*temp*); for f in *.m4a; do g=${f//-temp*./.}; mv "$f" "$g"; done; |
OlderNewer