$test
$this_isa.test_variable
$thisisvalid1
$sois.this1
This file contains 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
#generate simple java maven project | |
mvn archetype:generate -DgroupId=com.yourcompany -DartifactId=myproject -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false | |
#compile the project and generate target folder | |
mvn compile | |
#execute the project | |
mvn exec:java -Dexec.mainClass=com.mycompany.App |
This file contains 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
<Param name="limit" type="number" min="0" max="100"/> | |
<Param name="offset" type="number" min="0" max="900"/> | |
<Query requires="limit,offset" limit="limit" offset="offset"> | |
select * from tbl_task_master | |
</Query> |
This file contains 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" ?> | |
<Resource xmlns="http://xml.metamug.net/resource/1.0" v="1.0"> | |
<Request method="GET"> | |
<Desc> Example Resource </Desc> | |
<Query> SELECT SQRT($n) as 's'</Query> | |
</Request> | |
</Resource> |
This file contains 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" ?> | |
<Resource xmlns="http://xml.metamug.net/resource/1.0" v="1.0"> | |
<Request method="GET"> | |
<Desc> Example Resource </Desc> | |
<Query> SELECT $a + $b as 'sum'</Query> | |
</Request> | |
</Resource> |
This file contains 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
<Query> | |
select name,age,location | |
from emp | |
where dept = $department | |
</Query> |
This file contains 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
Show hidden characters
{ | |
"working_dir": "$file_path", | |
"shell_cmd":"mvn clean install", | |
"variants": [ | |
{ | |
"name": "mvn clean install", | |
"shell_cmd": "mvn clean install" | |
}, | |
{ | |
"name": "mvn full build", |
This file contains 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" ?> | |
<Resource xmlns="http://xml.metamug.net/resource/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://xml.metamug.net/resource/1.0 http://xml.metamug.net/schema/resource.xsd" | |
v="0.8"> | |
<Desc>No use in production. Used for testing in android app.</Desc> | |
<Request method="GET"> | |
<Desc> | |
Request to display a single page. | |
User needs to calculate offset = limit + offset for each subsequent request. | |
Offset is 900 i.e There are 1000 records. Limit being 100, Page size cannot be more than 100. |
This file contains 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 fs = require('fs'); | |
// read file & load data from file | |
var contents = fs.readFileSync('data.csv', 'utf8'); | |
//process data | |
var tokens = contents.split(",") | |
var sumNumber = 0,sumAverage=0;//variable to store largest number | |
for (var i = 0; i < tokens.length ; i++) { | |
var number = parseInt(tokens[i]) //string to interger |
This file contains 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
function fact(n) { | |
if (n <= 1) { | |
return 1 | |
}else{ | |
return fact(n-1)*n | |
} | |
} | |
function reverse(name) { | |
if (name.length == 1) { |