This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation | |
import Speech | |
protocol SpeechToTextDelegate { | |
func conversionGoingOn(_ convertedString: String) | |
func conversionFinished(_ convertedString: String) | |
} | |
class SpeechToText: NSObject, SFSpeechRecognizerDelegate { | |
// Creating singleton |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protocol TextToSpeechDelegate { | |
func speechDidFinish() | |
} | |
class TextToSpeech: NSObject, AVSpeechSynthesizerDelegate { | |
// Creating Singlton | |
static let sharedInstance = TextToSpeech() | |
private override init() { | |
super.init() | |
voiceToUse = AVSpeechSynthesisVoice.speechVoices().filter({ $0.name == "Karen" }).first |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// DataHandler.swift | |
// NMEventKitDemo | |
// | |
// Created by Neeraj Kumar Mishra on 1/15/18. | |
// Copyright © 2018 Neeraj Kumar Mishra. All rights reserved. | |
// | |
import UIKit | |
import EventKit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
let imageCache = NSCache<AnyObject, AnyObject() | |
extension UIImageView { | |
func cacheImage(urlString: String){ | |
let url = URL(string: urlString) | |
image = nil | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// TimeLineView.swift | |
// ISTimelineDemo | |
// | |
// Created by Neeraj Kumar Mishra on 2/13/18. | |
// Copyright © 2018 instant:solutions. All rights reserved. | |
// | |
import UIKit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"network-config": { | |
"org1": { | |
"name": "Org1", | |
"mspid": "Org1MSP", | |
"peer1": { | |
"requests": "grpc://localhost:7051", | |
"events": "grpc://localhost:7053", | |
"server-hostname": "peer0.org1.example.com" | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// LoginVC.swift | |
// ReportingApp | |
// | |
// Created by Neeraj Kumar Mishra on 7/11/18. | |
// Copyright © 2018 Neeraj Kumar Mishra. All rights reserved. | |
// | |
import UIKit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// CoreDataHandler.swift | |
// ReportingApp | |
// | |
// Created by Neeraj Kumar Mishra on 7/22/18. | |
// Copyright © 2018 Neeraj Kumar Mishra. All rights reserved. | |
// | |
import Foundation | |
import UIKit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
To start a network | |
./startFabric.sh | |
To teardown a network: | |
./teardownFabric.sh | |
To remove card | |
rm -rf ~/.composer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// NetworkManager.swift | |
// Xaas | |
// | |
// Created by Neeraj K Mishra on 07/01/19. | |
// Copyright © 2019 PwC. All rights reserved. | |
// | |
import Foundation | |
import Reachability |
OlderNewer