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
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-surefire-plugin</artifactId> | |
| <configuration> | |
| <skip>false</skip> | |
| <argLine>-DdataSource=dataSource.ORACLE.properties</argLine> | |
| <reportNameSuffix>ORA</reportNameSuffix> | |
| </configuration> | |
| <executions> | |
| <execution> |
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
| <properties> | |
| <sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis> | |
| </properties> |
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
| ALTER SYSTEM SET PROCESSES=1500 SCOPE=SPFILE; |
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
| import org.aspectj.lang.annotation.Aspect; | |
| import org.aspectj.lang.annotation.Before; | |
| import org.aspectj.lang.annotation.Pointcut; | |
| import org.slf4j.Logger; | |
| import org.slf4j.LoggerFactory; | |
| @Aspect | |
| //Replace "com.package" with your project package | |
| public class StatementTracing { | |
| static final Logger logger = LoggerFactory.getLogger("jdbc.sql"); |
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
| CREATE OR REPLACE | |
| FUNCTION REPEAT( | |
| p_string VARCHAR2 , | |
| p_times INTEGER ) | |
| RETURN VARCHAR2 | |
| AS | |
| BEGIN | |
| RETURN rpad (p_string, LENGTH(p_string)*p_times, p_string); | |
| END REPEAT; |
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
| import org.aspectj.lang.JoinPoint; | |
| import org.aspectj.lang.annotation.*; | |
| import org.slf4j.Logger; | |
| import org.slf4j.LoggerFactory; | |
| @Aspect | |
| public class LoggingInterceptor { | |
| static final Logger logger = LoggerFactory.getLogger(LoggingInterceptor.class); | |
| @Pointcut("call(* java.io.PrintStream.print*(..)) && within(com.mybasepackage..*)") |
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
| .pagination { | |
| -fx-skin: "con.iromu.custom.skin.pagination.PaginationSkin"; | |
| } |
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
| private static final Duration DURATION = new Duration(500.0);//new Duration(125.0); |
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
| import javafx.beans.value.ChangeListener; | |
| import javafx.beans.value.ObservableValue; | |
| import javafx.scene.image.Image; | |
| import javafx.scene.image.ImageView; | |
| public class ProgressiveImageView extends ImageView { | |
| public ProgressiveImageView(final String image, String placeholder) { | |
| final Image img = new Image(image, true); | |
| img.progressProperty().addListener(new ChangeListener<Number>() { | |
| public void changed(ObservableValue ov, |
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
| private Node createPage(int pageIndex) { | |
| ProgressiveImageView iv = null; | |
| try { | |
| String s = files.get(pageIndex).toUri().toURL().toExternalForm(); | |
| String p = placeholders.get(pageIndex).toUri().toURL().toExternalForm(); | |
| iv = new ProgressiveImageView(s, p); | |
| } catch (MalformedURLException e) { | |
| e.printStackTrace();// TODO, I feel too lazy today | |
| } | |
| iv.setPreserveRatio(true); |
OlderNewer