Skip to content

Instantly share code, notes, and snippets.

@KalpeshTalkar
KalpeshTalkar / FAB.h
Last active April 1, 2016 12:00
FAB, a custom IBDesignable UIButton
//
// FAB.h
//
// Created by Kalpesh Talkar on 01/04/16.
// Copyright © 2016 Kalpesh. All rights reserved.
//
#import <UIKit/UIKit.h>
// On click block
@KalpeshTalkar
KalpeshTalkar / KBorderedGradientView.h
Last active April 1, 2016 11:59
KBorderedGradientView, a custom IBDesignable UIView
//
// KBorderedGradientView.h
//
// Created by Kalpesh Talkar on 01/02/16.
// Copyright © 2016 Kalpesh. All rights reserved.
//
#import <UIKit/UIKit.h>
IB_DESIGNABLE
@KalpeshTalkar
KalpeshTalkar / KBorderedButton.h
Created April 1, 2016 11:55
KBorderedButton, a custom IBDesignable UIButton
//
// KBorderedButton.h
//
// Created by Kalpesh Talkar on 01/02/16.
// Copyright © 2016 Kalpesh. All rights reserved.
//
#import <UIKit/UIKit.h>
IB_DESIGNABLE
@KalpeshTalkar
KalpeshTalkar / KImageCache
Created April 1, 2016 12:32
KImageCache, a swift class for loading images from url and caching.
//
// KImageCache.swift
//
// Created by Kalpesh Talkar on 01/04/16.
// Copyright © 2016 Kalpesh. All rights reserved.
//
import UIKit
class KImageCache {
//
// ShareObject.swift
//
// Created by Kalpesh Talkar on 28/05/16.
// Copyright © 2016 Kalpesh. All rights reserved.
//
import UIKit
@IBDesignable class ShareObject: NSObject {
//
// MessageObject.swift
//
// Created by Kalpesh Talkar on 29/05/16.
// Copyright © 2016 Kalpesh Talkar. All rights reserved.
//
import UIKit
import MessageUI
//
// TouchIDAuthenticationObject.swift
//
// Created by Kalpesh Talkar on 03/06/16.
// Copyright © 2016 Kalpesh. All rights reserved.
//
import UIKit
import LocalAuthentication
@KalpeshTalkar
KalpeshTalkar / UIViewController+PresentationStyle.h
Created September 3, 2016 14:09
A UIViewController category to present viewcontroller as popover controller in iPhone devices
//
// UIViewController+PresentationStyle.h
//
// Created by Kalpesh Talkar on 22/08/16.
// Copyright © 2016 Kalpesh Talkar. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface UIViewController (PresentationStyle) <UIPopoverPresentationControllerDelegate>
import android.app.Activity;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.drawable.BitmapDrawable;
import android.text.Spannable;
import android.text.SpannableStringBuilder;
import android.text.style.ImageSpan;
import android.util.AttributeSet;
@KalpeshTalkar
KalpeshTalkar / htmlParserFunction.m
Created November 4, 2016 07:08
This is a small function to parse string/data from <html> tags.
//
// Created by Kalpesh Talkar on 16/12/15.
// Copyright © 2015 Kalpesh Talkar. All rights reserved.
//
/**
Function to parse string/data from <html> tags.
@param htmlStartTag start tag for e.g. <h1>
@param htmlEndTag edn tag for e.g. </h1>