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
| /** | |
| * @name midnight-kompact | |
| * @description a dark, customizable discord theme. | |
| * @author refact0r | |
| * @version 2.0.1 | |
| * @invite nz87hXyvcy | |
| * @website https://github.com/refact0r/midnight-discord | |
| * @source https://github.com/refact0r/midnight-discord/blob/master/themes/midnight.theme.css | |
| * @authorId 508863359777505290 | |
| * @authorLink https://www.refact0r.dev |
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
| public static int maxDegree(Graph G) | |
| { | |
| int max = 0; | |
| for (int v = 0; v < G.V(); v++) | |
| if (degree(G, v) > max) | |
| max = degree(G, v); | |
| return max; | |
| } |
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
| @FXML | |
| private void handleBrowseFiles(ActionEvent actionEvent) { | |
| FileChooser fc = new FileChooser(); | |
| FileChooser.ExtensionFilter extensionFilter = new FileChooser.ExtensionFilter("CSV files (*.csv)","*.csv"); | |
| fc.setSelectedExtensionFilter(extensionFilter); | |
| fc.setTitle("Choose me"); | |
| File document = fc.showOpenDialog(new Stage()); | |
| try { | |
| List<String> lines = Files.readAllLines(Paths.get(document.toPath().toString()),Charset.defaultCharset()); | |
| //TODO add parser to parse document |
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
| java.net.BindException: Address already in use: JVM_Bind | |
| at java.net.DualStackPlainSocketImpl.bind0(Native Method) | |
| at java.net.DualStackPlainSocketImpl.socketBind(DualStackPlainSocketImpl.java:106) | |
| at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:387) | |
| at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:190) | |
| at java.net.ServerSocket.bind(ServerSocket.java:375) | |
| at java.net.ServerSocket.<init>(ServerSocket.java:237) | |
| at java.net.ServerSocket.<init>(ServerSocket.java:128) | |
| at model.Model.sendMessage(Model.java:90) | |
| at model.Model.iterate(Model.java:82) |
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
| { | |
| "Prediction": [ | |
| { "year":0 , "cattle":0, "horses":0, "dear":0, "geese":0, "grassAvailable":200000 }, | |
| { "year":1 , "cattle":0, "horses":0, "dear":0, "geese":0, "grassAvailable":195000 }, | |
| { "year":2 , "cattle":0, "horses":0, "dear":0, "geese":0, "grassAvailable":190000 }, | |
| { "year":3 , "cattle":0, "horses":0, "dear":0, "geese":0, "grassAvailable":185000 }, | |
| { "year":4 , "cattle":0, "horses":0, "dear":0, "geese":0, "grassAvailable":180000 }, | |
| { "year":5 , "cattle":0, "horses":0, "dear":0, "geese":0, "grassAvailable":175000 }, | |
| { "year":6 , "cattle":0, "horses":0, "dear":0, "geese":0, "grassAvailable":170000 }, | |
| { "year":7 , "cattle":0, "horses":0, "dear":0, "geese":0, "grassAvailable":165000 }, |
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
| /** | |
| * Update the internal string that represents the display. | |
| */ | |
| private void updateDisplay() | |
| { | |
| //Local Variables | |
| int _Hours = 0; | |
| String _pm = _Hours + ":" + minutes.getValue() + "pm"; | |
| String _am = _Hours + ":" + minutes.getValue() + "am"; | |