Skip to content

Instantly share code, notes, and snippets.

Gurdeep Gurdeep0602

Block or report user

Report or block Gurdeep0602

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View AppFonts.swift
//
// AppFonts.swift
// AppFonts
//
// Created by Gurdeep on 15/12/16.
// Copyright © 2016 Gurdeep. All rights reserved.
//
import Foundation
import UIKit
View AppUserDefaults.swift
import Foundation
import SwiftyJSON
enum AppUserDefaults {
enum Key : String {
case Name
case Age
View AppStoryboard.h
typedef enum : NSUInteger {
AppStoryboardMain = 0,
AppStoryboardDetail,
} AppStoryboardName;
#define kStoryboardArray @"Main", @"Detail", nil
#define storyboardString(enumVal) [[[NSArray alloc] initWithObjects:kStoryboardArray] objectAtIndex:enumVal]
@Gurdeep0602
Gurdeep0602 / AppStoryboard.swift
Last active Jun 25, 2019
AppStoryboard enumeration
View AppStoryboard.swift
//
// AppStoryboards.swift
// AppStoryboards
//
// Created by Gurdeep on 15/12/16.
// Copyright © 2016 Gurdeep. All rights reserved.
//
import Foundation
import UIKit
View OnConnect API Sample Response
[{
"tmsId": "MV000009840000",
"rootId": "629",
"subType": "Feature Film",
"title": "Monty Python and the Holy Grail",
"releaseYear": 1975,
"releaseDate": "1975-04-01",
"titleLang": "en",
"descriptionLang": "en",
"entityType": "Movie",
View Autocast
/// Cast the argument to the infered function return type.
func autocast<T>(some: Any) -> T? {
return some as? T
}
protocol Foo {
static func foo() -> Self
}
class Vehicle: Foo {
View PrettyTextField
//
// PrettyTextField.swift
//
//
// Created by Gurdeep Singh on 26/05/15.
// Copyright (c) 2015 AppInventiv. All rights reserved.
//
import UIKit
View UIWindow+AppSwitchScrollStopper.h
// UIWindow+AppSwitchScrollStopper.h
// Created by Tim Johnsen on 3/27/16.
#import <UIKit/UIKit.h>
@interface UIWindow (AppSwitchScrollStopper)
/// Call this early on in your app's lifecycle to avoid
/// scroll-related flashing when your app resumes from the background
- (void)installAppSwitchScrollStopper;
You can’t perform that action at this time.