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
// create configuration | |
val webjars = configurations.create("webjar") | |
// add dependencies | |
dependencies { | |
"webjar"("org.webjars.bower:bootstrap:4.1.3") | |
"webjar"("org.webjars.bower:jquery:3.3.1") | |
} | |
// add task |
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
import java.math.BigDecimal; | |
import java.math.RoundingMode; | |
/** | |
* Based on: https://stackoverflow.com/a/26227947/1659588 | |
*/ | |
public class Parser { |
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
import java.util.Objects; | |
public class Outer { | |
private class Inner { | |
@Override | |
public boolean equals(Object obj) { | |
// @formatter:off | |
return Objects.equals("", "") | |
&& Objects.equals("", "") |
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
import org.slf4j.LoggerFactory; | |
import ch.qos.logback.classic.Level; | |
import ch.qos.logback.classic.Logger; | |
public class SqlLog { | |
private static final Logger LOG = | |
(Logger) LoggerFactory.getLogger(SqlLog.class); |
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
/** | |
* This program is free software. It comes without any warranty, to | |
* the extent permitted by applicable law. You can redistribute it | |
* and/or modify it under the terms of the Do What The Fuck You Want | |
* To Public License, Version 2, as published by Sam Hocevar. See | |
* http://www.wtfpl.net/ for more details. | |
* | |
* -------------------------------------------------------------------- | |
* | |
* This method takes a SemVer (http://semver.org/) compatible Version String |
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
void printView(TM1Cube oCube, String viewName) { | |
TM1View view = oCube.getView(viewName); | |
view.constructArray(); | |
int arrayRows = view.getNumberOfArrayRows(); | |
int arrayColumns = view.getNumberOfArrayColumns(); | |
int dataRows = view.getNumberOfArrayAxisTuples(new TM1Val(2)).getInt(); | |
int dataCols = view.getNumberOfArrayAxisTuples(new TM1Val(1)).getInt(); |
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
import java.io.IOException; | |
import java.io.OutputStream; | |
import java.net.HttpURLConnection; | |
import java.net.URI; | |
import java.net.URISyntaxException; | |
import java.util.List; | |
import java.util.Map; | |
import java.util.zip.GZIPOutputStream; | |
import org.springframework.http.ContentCodingType; |