Skip to content

Instantly share code, notes, and snippets.

{
"active_user_report_interval_in_minutes" = 1;
"allow_payment_from_landing_page" = 0;
"allow_to_approve_and_pay_later" = 1;
"allow_user_to_add_selfie_to_offer" = 1;
"allow_user_to_skip_intro" = 1;
"allowed_barters" = "1,2,3,5,7,9,10,11,12";
"allowed_offeree_types" = "0,1,3,4,5,6,7,8,9,10";
"allowed_social_login_providers" = "facebook,gplus";
"analytics_report_attribution" = 1;
@HoldFast88
HoldFast88 / Swift singleton
Last active August 29, 2015 14:02
Threat-safe Swift singleton example
class <#ClassName#> : NSObject {
class var sharedInstance: <#ClassName#> {
get {
struct Static {
static var instance : <#ClassName#>? = nil
static var token : dispatch_once_t = 0
}
dispatch_once(&Static.token) {
Static.instance = <#ClassName#>()