This file contains hidden or 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
| package com.bsandhu.server.db | |
| import org.hibernate.boot.MetadataSources | |
| import org.hibernate.boot.model.naming.ImplicitNamingStrategyJpaCompliantImpl | |
| import org.hibernate.boot.registry.BootstrapServiceRegistryBuilder | |
| import org.hibernate.boot.registry.StandardServiceRegistryBuilder | |
| import org.hibernate.boot.spi.MetadataImplementor | |
| import org.hibernate.tool.hbm2ddl.SchemaUpdate | |
This file contains hidden or 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
| public class Main { | |
| public static void main(String[] args) throws Exception { | |
| String webappDirLocation = "src/main/webapp/"; | |
| Tomcat tomcat = new Tomcat(); | |
| tomcat.setPort(8080); | |
| StandardContext ctx = (StandardContext) tomcat.addWebapp("/", new File(webappDirLocation).getAbsolutePath()); | |
| Executor[] executors = tomcat.getEngine().getService().findExecutors(); |
This file contains hidden or 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
| public class MainVerticle extends AbstractVerticle { | |
| @Override | |
| public void start() throws Exception { | |
| ObjectMapper mapper = new ObjectMapper(); | |
| vertx.createHttpServer().requestHandler(req -> { | |
| vertx.eventBus().send("db.read", "Test", res -> { | |
| req.response() | |
| .setStatusCode(200) |
This file contains hidden or 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
| public class MainVerticle extends AbstractVerticle { | |
| @Override | |
| public void start() throws Exception { | |
| ObjectMapper objectMapper = new ObjectMapper(); | |
| vertx.createHttpServer().requestHandler(req -> { | |
| vertx.executeBlocking(future -> { | |
| try { |
This file contains hidden or 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
| const path = require('path'); | |
| exports.props = { | |
| capabilities: { | |
| browserName: 'chrome', | |
| chromeOptions: { | |
| args: ["show-fps-counter=true"] | |
| } | |
| }, |
This file contains hidden or 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
| define(['log', | |
| 'knockout', | |
| 'modules/loans/ironBank/components/myReactComponent', | |
| 'modules/loans/commons/utils/knockoutReactBinding'], | |
| function (log, | |
| ko, | |
| _myReactComponent) { | |
| 'use strict'; | |
| function ComponentsRegistry() { |
This file contains hidden or 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
| define( | |
| ['log', 'knockout', 'react', 'react-dom'], | |
| function (log, ko, React, ReactDOM) { | |
| "use strict"; | |
| function KnockoutReactBinding() { | |
| log.info('Loading KO binding for React'); | |
| this.init(); | |
| } |