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
<?xml version='1.0' encoding='UTF-8'?> | |
<module xmlns="urn:jboss:module:1.1" name="mysql"> | |
<resources> | |
<resource-root path="mysql-connector-java-5.1.42-bin.jar"/> | |
</resources> | |
<dependencies> | |
<module name="javax.api"/> |
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
<subsystem xmlns="urn:jboss:domain:datasources:5.0"> | |
<datasources> | |
<datasource jndi-name="java:jboss/datasources/ExampleDS" pool-name="ExampleDS" enabled="true" use-java-context="true" statistics-enabled="${wildfly.datasources.statistics-enabled:${wildfly.statistics-enabled:false}}"> | |
<connection-url>jdbc:h2:mem:test;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE</connection-url> | |
<driver>h2</driver> | |
<security> | |
<user-name>sa</user-name> | |
<password>sa</password> | |
</security> | |
</datasource> |
This file has been truncated, but you can view the full file.
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
========================================================================= | |
JBoss Bootstrap Environment | |
JBOSS_HOME: /Users/aseed.usmani/keycloak-7.0.0 | |
JAVA: java | |
JAVA_OPTS: -server -Xms64m -Xmx512m -XX:MetaspaceSize=96M -XX:MaxMetaspaceSize=256m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true --add-exports=java.base/sun.nio.ch=ALL-UNNAMED --add-exports=jdk.unsupported/sun.misc=ALL-UNNAMED --add-exports=jdk.unsupported/sun.reflect=ALL-UNNAMED |
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
/* QUESTION | |
Given a matrix, find largest submatrix where the sum of its elements is zero, and print its size | |
*/ | |
// First take input... | |
/* Example in Java using Scanner class, you can use C if you are comfortable with it*/ | |
Scanner sc=new Scanner(System.in); //make sure you have imported Scanner class using `import java.util.Scanner;` |
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
{ | |
"code":500, | |
"success":false, | |
"message":"Not able to place order. Please try after some time", | |
"developerMessage":{ | |
"errors":{ | |
"totalPrice":{ | |
"message":"Cast to Number failed for value \"NaN\" at path \"totalPrice\"", | |
"name":"CastError", | |
"stringValue":"\"NaN\"", |
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
protected Map<String, String> getParams() { | |
JSONArray jsonArray = new JSONArray(); //for list of products ordered | |
Map<String, String> params = new HashMap<>(); | |
SharedPreferences sharedPreferences = getSharedPreferences(Constants.KEY_LOGIN_PREFERENCE, Context.MODE_PRIVATE); | |
params.put("merchantMobileNo", "7204826250"); | |
params.put("customerMobileNo", sharedPreferences.getString(Constants.KEY_MOBILE, "N/A")); |
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
{ | |
"name": "ESJS", | |
"version": "1.0.0", | |
"description": "SIH Project Team KANNAZ JMI", | |
"main": "es.js", | |
"dependencies": { | |
"elasticsearch": "^13.3.1" | |
} | |
} |
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
var elasticsearch = require('elasticsearch'); | |
var url = require('url'); | |
var http = require('http'); | |
var fs = require('fs'); | |
var client = new elasticsearch.Client({ | |
host: 'localhost:9200', | |
}); |
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
payload = { 'task': 'index', | |
'disease': filename, | |
'url': uploaded_file_url, | |
'doc_id': 'id'} | |
r = requests.get('http://localhost:8080/?', params=payload) |
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
{ | |
"name": "ESJS", | |
"version": "1.0.0", | |
"description": "SIH Project Team KANNAZ JMI", | |
"main": "es.js", | |
"dependencies": { | |
"elasticsearch": "^13.3.1" | |
} | |
} |
NewerOlder