- Get and Start Kong and Co
git clone git@github.com:Mashape/docker-kong.git
cd docker-kong/compose
docker-compose up
- Create Kong API Route
public class RomanNumeralsGenerator { | |
enum Numeral { | |
I(1), IV(4), V(5), IX(9), X(10), XL(40), L(50), XC(90), C(100), CD(400), D(500), CM(900), M(1000); | |
int weight; | |
Numeral(int weight) { | |
this.weight = weight; | |
} | |
}; |
@Configuration | |
public class ConnectorConfig { | |
@Bean | |
public EmbeddedServletContainerFactory servletContainer() { | |
TomcatEmbeddedServletContainerFactory tomcat = new TomcatEmbeddedServletContainerFactory() { | |
@Override | |
protected void postProcessContext(Context context) { | |
SecurityConstraint securityConstraint = new SecurityConstraint(); | |
securityConstraint.setUserConstraint("CONFIDENTIAL"); |
NOTE: Source/Credit https://algs4.cs.princeton.edu/cheatsheet/ | |
We summarize the performance characteristics of classic algorithms and data structures for sorting, priority queues, symbol tables, and graph processing. | |
We also summarize some of the mathematics useful in the analysis of algorithms, including commonly encountered functions, useful formulas and appoximations, properties of logarithms, order-of-growth notation, and solutions to divide-and-conquer recurrences. | |
Sorting. The table below summarizes the number of compares for a variety of sorting algorithms, as implemented in this textbook. It includes leading constants but ignores lower-order terms. | |
ALGORITHM CODE IN PLACE STABLE BEST AVERAGE WORST REMARKS |
import java.io.*; | |
import java.util.*; | |
import java.text.*; | |
import java.math.*; | |
import java.util.regex.*; | |
import java.net.*; | |
import com.google.gson.*; | |
//------ My code ----------- | |
import java.io.InputStreamReader; |
visit: https://stackoverflow.com/a/58601972/5324721 | |
generated encrypted string from command does not give desired result as it can not encrypt special chards like "!".and gives error "event not found" | |
> KAD@ashutosh MINGW64 ~/Desktop | |
> $ java -cp | |
> ~/.m2/repository/org/jasypt/jasypt/1.9.3/jasypt-1.9.3.jar | |
> org.jasypt.intf.cli.JasyptPBEStringEncryptionCLI | |
> input="Test!email30#password" password="some_salt" |
#1.Updates all packages the the latest version available.
sudo yum -y update
#2.Package Dependencies before installing RabbitMq
#3.Enable the EPEL repository
At some point in any software project, you will need to share your code with other developers. If you’re using Git for source control, there are three primary options: Github, Bitbucket, or Gitlab. Understanding the differences and tradeoffs between these three repository management platforms is vital to choosing the best option for your team.
Before creating a new branch, pull the changes from upstream. Your master needs to be up to date.
$ git pull
Create the branch on your local machine and switch onto this new branch
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.company</groupId>
<artifactId>company-boot-starter</artifactId>
<version>1.0-SNAPSHOT</version>