Skip to content

Instantly share code, notes, and snippets.

View n1tesh's full-sized avatar

Nitesh n1tesh

View GitHub Profile
import UIKit
import Firebase
import GoogleSignIn
import UserNotifications
import Siren
import CleverTapSDK
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterDelegate, MessagingDelegate {
<script>
//Input Validation
function isNumberKey(evt){
var charCode = (evt.which) ? evt.which : event.keyCode;
if (charCode > 31 && (charCode < 48 || charCode > 57))
return false;
if(evt.length==7)
return false;
return true;
//: Playground - noun: a place where people can play
import UIKit
// Constant Values
var STANDARD_DEDUCTION_RATE_ON_INCOME_FROM_LET_OUT_PROPERTY = 30/100;
var MAXIMUM_DEDUCTION_ON_DONATION_TO_CHARITY_US_80G = 9999999;
var MAXIMUM_DEDUCTION_ON_INTEREST_ON_EDUCATIONAL_LOAN_US_80E = 9999999;
var MAXIMUM_DEDUCTION_ON_MEDICAL_INSURANCE_PREMIUM_US_80D = 9999999;
import Foundation
import ContactsUI
struct User {
var userContact = CNContact()
var recipientContact: CNContact?
var isDefault: Bool = false
init(userContact: CNContact, recipientContact: CNContact? = nil, isDefault: Bool) {
self.userContact = userContact
{
"success": true,
"message": "group found",
"data": {
"_id": "591954b230f73d6fb2373f92",
"created_by": {
"_id": "5901a50c0532193e19303641",
"login_email": "sushmita.patil@google.com",
"active_login_platforms": [
"email"
class AppNameUser : Object, Mappable {
dynamic var userId: String = ""
dynamic var company: String = ""
dynamic var designation: String = ""
dynamic var name: String = ""
dynamic var image: String = ""
dynamic var email: String = ""
override class func primaryKey() -> String? {