easy, beautiful loading bar https://docs.ourcodeworld.com/projects/holdon-js/documentation/methods/index.html
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
'use strict'; | |
jQuery(function ($) { | |
var api = $.get('/~~~/~~~~', function (data1) { | |
console.log("done 1==>", data1); | |
}).then(function (data1) { | |
$.get('/~~~/~~~~~', function (data2) { //if you wannna synchronize must've require return | |
console.log("data2 ==>", data2); | |
}); | |
}).then(function (data2) { |
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
//init JPAQuery | |
JPAQuery jpqlQuery = new JPAQuery(entityManager); | |
//define QueryDsl entity | |
QEmp empEntity = QEmp.empEntitiy; | |
QDeptEntity deptEntity = QDeptEntity.deptEntity; | |
QSalEntity salEntity = QSalEntitiy.salEntity | |
//target tables | |
JPAQueryBase fromClause = jpqlQuery.from(empEntity) |
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
ProcessBuilder |
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
IOUtils.readLines(inputStream, StandardCharsets.UTF_8); |
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
you try to change mod 600 private key file |
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
https://rawgit.com/eu81273/jsfiddle-console/master/console.js |
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
public static double[] calculateLowerUpperConfidenceBoundary95Percent(double[] givenNumbers) { | |
// calculate the mean value (= average) | |
double sum = 0.0; | |
for (double num : givenNumbers) { | |
sum += num; | |
} | |
double mean = sum / givenNumbers.length; | |
// calculate standard deviation | |
double squaredDifferenceSum = 0.0; |