Skip to content

Instantly share code, notes, and snippets.

View kkarayannis's full-sized avatar

Kostas Karagiannis kkarayannis

  • Spotify
  • Stockholm, Sweden
View GitHub Profile
@kkarayannis
kkarayannis / gist:9246422
Created February 27, 2014 08:30
Objective-c lazy instantiation TextExpander Snippet
-(%fill:class%*) %fill:property%{
if (!_%fill:property%){
_%fill:property% = [[%fill:class% alloc] init];
}
return _%fill:property%;
}

Keybase proof

I hereby claim:

  • I am kkarayannis on github.
  • I am kkarayannis (https://keybase.io/kkarayannis) on keybase.
  • I have a public key ASDDUe9H2Te8rlRTBPyFTUWDdtnI9assqNt76HB2v5k9fgo

To claim this, I am signing this object:

import UIKit
class SceneDelegate: UIResponder, UIWindowSceneDelegate,
SPTAppRemoteDelegate {
static private let kAccessTokenKey = "access-token-key"
private let redirectUri = URL(string:"comspotifytestsdk://")!
private let clientIdentifier = "089d841ccc194c10a77afad9e1c11d54"
var window: UIWindow?