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
/* | |
This sample code illustrates below mention feature | |
1) Diffie Hillman key exchange | |
2) HKDF Aes encryption and decryption | |
Tech used: | |
1) BouncyCastle: ( | |
<dependency> | |
<groupId>org.bouncycastle</groupId> | |
<artifactId>bcprov-jdk15on</artifactId> |
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
/* | |
This sample code illustrates below mention feature | |
1) Diffie Hillman key exchange | |
2) HKDF Aes encryption and decryption | |
Tech used: | |
1) BouncyCastle | |
2) C# dotnet | |
*/ | |
namespace In.ProjectEKA.HipService.EncryptionBit |
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
{% comment %} | |
AFRAME VR Setup: | |
1) Download aframe.min.js , three.module.js. | |
2) Create and populate assets marked as (<!-- Dowload asset and replce-->) | |
3) Install npm if not there... run npm install -g http-server | |
4) Navigate to that file's folder using Terminal. | |
5) Run http-server | |
Note: Please name the file 'index.html' | |
{% endcomment %} |
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
struct AppUtility { | |
static func lockOrientation(_ orientation: UIInterfaceOrientationMask) { | |
if let delegate = UIApplication.shared.delegate as? AppDelegate { | |
delegate.orientationLock = orientation | |
} | |
} | |
/// OPTIONAL Added method to adjust lock and rotate to the desired orientation |
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 |
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
// | |
// 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
// | |
// 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
{ | |
"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
// | |
// TimeLineView.swift | |
// ISTimelineDemo | |
// | |
// Created by Neeraj Kumar Mishra on 2/13/18. | |
// Copyright © 2018 instant:solutions. All rights reserved. | |
// | |
import UIKit |
NewerOlder