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.apache.commons.math3.stat.descriptive.SynchronizedSummaryStatistics; | |
import org.apache.commons.math3.util.FastMath; | |
import org.apache.commons.math3.util.Precision; | |
import java.util.List; | |
public class Calculator { | |
protected Double calculateStandardDiviation(List<Double> scores){ | |
SynchronizedSummaryStatistics stats = new SynchronizedSummaryStatistics(); | |
for (Double score : scores){ |
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 javax.swing.*; | |
import javax.swing.plaf.LayerUI; | |
import java.awt.*; | |
import java.awt.image.*; | |
public class InvertColorLayerUI extends LayerUI<JComponent> { | |
private BufferedImage bufferedImage; | |
@Override | |
public void paint(Graphics g, JComponent c) { | |
int w = c.getWidth(); |
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
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Embedded Stylesheet</title> | |
<link rel="stylesheet" href="../assets/common.css"> | |
<!-- Embedded stylesheet --> | |
<style> | |
/* Filter definitions */ |
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
.invert{ | |
filter: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg"><filter id="invert"><feColorMatrix color-interpolation-filters="sRGB" in="SourceGraphic" type="matrix" values="-1,0,0,0,1,0,-1,0,0,1,0,0,-1,0,1,0,0,0,1,0"/></filter></svg>#invert'); | |
filter: invert(1); | |
-ms-filter: invert(1); | |
-webkit-filter: invert(1); | |
-webkit-backface-visibility: hidden; | |
backface-visibility: hidden; | |
position: relative; | |
overflow: hidden; | |
} |
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.apache.commons.lang3.time.DateFormatUtils; | |
import org.apache.commons.lang3.time.DateUtils; | |
import org.jdesktop.swingx.JXDatePicker; | |
import javax.swing.*; | |
import java.awt.*; | |
import java.util.Date; | |
import java.util.TimeZone; | |
public class Calendar extends JPanel { | |
private JXDatePicker datePicker; |
NewerOlder