Skip to content

Instantly share code, notes, and snippets.

View Nexengineer's full-sized avatar
🎯
Learning RUST in free time

Neeraj Kumar Mishra Nexengineer

🎯
Learning RUST in free time
View GitHub Profile
@Nexengineer
Nexengineer / DHKeyExchangeCrypto.java
Last active August 13, 2020 13:52
This is a sample implementation for Diffie-Hillman key exchange and encryption
/*
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>
@Nexengineer
Nexengineer / DHKeyExchangeCrypto.cs
Last active February 6, 2023 07:06
This Gist contains the sample implementation of DH key exchange and Encryption and decryption.
/*
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
@Nexengineer
Nexengineer / A-Frame_VR_Demo.html
Last active July 9, 2019 08:05
AFrame VR file. (This contains both HTML and Java script File). Run instructions attached at top.
{% 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 %}
@Nexengineer
Nexengineer / AppUtility
Created February 19, 2019 10:16
Orientation Lock
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
@Nexengineer
Nexengineer / NetworkManger
Created February 19, 2019 10:13
Network avaliablity
//
// NetworkManager.swift
// Xaas
//
// Created by Neeraj K Mishra on 07/01/19.
// Copyright © 2019 PwC. All rights reserved.
//
import Foundation
import Reachability
@Nexengineer
Nexengineer / Composer 0.19.x_Commands.txt
Created August 3, 2018 05:49
Hyperledger Composer commands
To start a network
./startFabric.sh
To teardown a network:
./teardownFabric.sh
To remove card
rm -rf ~/.composer
//
// CoreDataHandler.swift
// ReportingApp
//
// Created by Neeraj Kumar Mishra on 7/22/18.
// Copyright © 2018 Neeraj Kumar Mishra. All rights reserved.
//
import Foundation
import UIKit
@Nexengineer
Nexengineer / example.swift
Created July 12, 2018 08:27
Keyboard avoid scrollview example
//
// LoginVC.swift
// ReportingApp
//
// Created by Neeraj Kumar Mishra on 7/11/18.
// Copyright © 2018 Neeraj Kumar Mishra. All rights reserved.
//
import UIKit
@Nexengineer
Nexengineer / config.json
Last active June 20, 2018 09:10
Hyperledger Composer + Hyperledger Explorer Config file
{
"network-config": {
"org1": {
"name": "Org1",
"mspid": "Org1MSP",
"peer1": {
"requests": "grpc://localhost:7051",
"events": "grpc://localhost:7053",
"server-hostname": "peer0.org1.example.com"
},
@Nexengineer
Nexengineer / TimeLineView.swift
Created February 13, 2018 09:15
TimeLineView.swift
//
// TimeLineView.swift
// ISTimelineDemo
//
// Created by Neeraj Kumar Mishra on 2/13/18.
// Copyright © 2018 instant:solutions. All rights reserved.
//
import UIKit