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
sudo /Applications/XAMPP/xamppfiles/bin/mysql.server start |
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 rm -r --cached . | |
git add . | |
git commit -m ".gitignore is now working" |
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
TARGET="$INFOPLIST_FILE" | |
echo $TARGET | |
if [ ! -f "$TARGET" ]; then | |
echo "missing file $TARGET" | |
exit 1; | |
fi | |
#!/bin/bash | |
buildNumber=$(/usr/libexec/PlistBuddy -c "Print CFBundleVersion" "$TARGET") | |
buildNumber=$(($buildNumber + 1)) | |
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion $buildNumber" "$TARGET" |
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
find ./ -type f | grep -E ".*\.[a-zA-Z0-9]*$" | sed -e 's/.*\(\.[a-zA-Z0-9]*\)$/\1/' | sort | uniq -c | sort -n |
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
NSLinguisticTagger *tagger = [[NSLinguisticTagger alloc] initWithTagSchemes:@[NSLinguisticTagSchemeLanguage, nil] options:0]; | |
[tagger setString:@"Das ist ein bisschen deutscher Text. Bitte löschen Sie diesen nicht."]; | |
NSString *result = [tagger tagAtIndex:0 scheme:NSLinguisticTagSchemeLanguage tokenRange:NULL sentenceRange:NULL]; | |
if ([result isEqualToString:@"und"]) { | |
// language detection failed | |
} else { | |
// result will be standard language abbreviations such as “en”, “fr”, “de”, etc., | |
// From Apple's doc: Languages are uniformly described by BCP-47 tags , preferably in canonical form; | |
} |
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
/* | |
Source: http://stackoverflow.com/a/14047028/1017340 | |
*/ | |
#define BUFSIZE 128 | |
char buf[BUFSIZE]; | |
char *pIn, *pOut, *pEnd; | |
char full; | |
// init |
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 [ -z "${PROJECT_DIR}" ]; then | |
PROJECT_DIR=`pwd` | |
fi | |
if [ -z "${PREFIX}" ]; then | |
PREFIX="" | |
fi | |
SVN_DIR="${PROJECT_DIR}/.svn" | |
GIT_DIR="${PROJECT_DIR}/.git" |
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
{ | |
"aps": { | |
"badge": 10, | |
"alert": "Hello world!", | |
"sound": "cat.caf" | |
} | |
} |
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
1. Project Settings | build settings -> Enabele Bitcode => NO | |
2. Add following to `-info.plist` | |
<key>NSAppTransportSecurity</key> | |
<dict> | |
<key>NSAllowsArbitraryLoads</key> | |
<true/> | |
</dict> | |
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 DEBUG | |
# define TICK NSDate *startTime = [NSDate date] | |
# define TOCK(_TXT_) NSLog(@"%@ Time: %f", _TXT_, -[startTime timeIntervalSinceNow]) | |
#else | |
# error Debug Only. | |
#endif |
OlderNewer