Skip to content

Instantly share code, notes, and snippets.

View rohankoid's full-sized avatar

Roan rohankoid

  • Diagonal.Software GmbH
  • Nepal
View GitHub Profile
@rohankoid
rohankoid / net.js
Created August 11, 2020 20:52 — forked from sid24rane/net.js
Simple TCP Client and Server in Node.js (Covering all useful Properties & Methods)
var net = require('net');
// creates the server
var server = net.createServer();
//emitted when server closes ...not emitted until all connections closes.
server.on('close',function(){
console.log('Server closed !');
});
@rohankoid
rohankoid / README.md
Created May 26, 2018 14:11 — forked from andineck/README.md
Authentication and Authorization Concepts for MicroServices

auth with microservices

Authorization and Authentication are hard. when you only have to implement them once (as you do within a monolith) instead of over and over again, it makes the developer happy :-), and maybe leads to less implementation failures.

When you have a bunch of microservices, this is something that has to be considered.

Implement it once or in every microservice, or something in between?

@rohankoid
rohankoid / DynamicPmmlModelSelectionExample.java
Created August 19, 2016 21:17 — forked from thomasdarimont/DynamicPmmlModelSelectionExample.java
Small jpmml-evaulator demo (with a dummy model) on how to dynamically select a regression model based on an input attribute value. In this case we use the "attribute1" to select the right model.
package de.tutorials.training;
import org.dmg.pmml.FieldName;
import org.dmg.pmml.PMML;
import org.jpmml.evaluator.FieldValue;
import org.jpmml.evaluator.ModelEvaluator;
import org.jpmml.evaluator.ModelEvaluatorFactory;
import org.jpmml.manager.PMMLManager;
import org.jpmml.model.ImportFilter;
import org.jpmml.model.JAXBUtil;