Skip to content

Instantly share code, notes, and snippets.

View maintainer's full-sized avatar
🛑
Busy

Anton maintainer

🛑
Busy
  • Sydney, Australia
View GitHub Profile
@maintainer
maintainer / keybase.md
Created June 19, 2017 08:28
keybase.md

Keybase proof

I hereby claim:

  • I am maintainer on github.
  • I am maintainer (https://keybase.io/maintainer) on keybase.
  • I have a public key ASBS28Ko0j9cpkqR4XDSpzuX-1Eoe8naKQXAMDPv_IjcMwo

To claim this, I am signing this object:

defaults write com.apple.dt.Xcode ShowBuildOperationDuration -bool YES
@maintainer
maintainer / Tokenize.m
Created February 17, 2016 08:04
Tokenize string using "enumerate"
NSString * string = @" \n word1! word2,%$?'/word3.word4 ";
[string enumerateSubstringsInRange:NSMakeRange(0, string.length)
options:NSStringEnumerationByWords
usingBlock:
^(NSString *substring, NSRange substringRange, NSRange enclosingRange, BOOL *stop) {
NSLog(@"Substring: '%@'", substring);
}];
BOOL installed = [[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@"skype:"]];
if(installed)
{
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"skype:echo123?call"]];
}
else
{
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://itunes.com/apps/skype/skype"]];
}