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 de.devboost.commenttemplate.CommentTemplate; | |
import de.devboost.commenttemplate.VariableAntiQuotation; | |
public class EventGeneratorSource { | |
public EventGeneratorSource() { | |
System.out.println("constructed: " + this.getClass().getSimpleName()); | |
} | |
@CommentTemplate |
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.ArrayList; | |
import org.simpleframework.xml.*; | |
import org.simpleframework.xml.core.Persister; | |
public class SkipDoubleElements { | |
static class RepeatElements { | |
@ElementListUnion({ @ElementList(entry = "enable", type = Boolean.class, inline = true) }) |
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.net.MalformedURLException; | |
import java.nio.file.*; | |
public class UriUrlDemo { | |
public static void main(String[] args) throws MalformedURLException { | |
boolean assertEnabled; | |
try { | |
assert false; |
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
package application; | |
import javafx.application.Application; | |
import javafx.beans.binding.Bindings; | |
import javafx.scene.Node; | |
import javafx.scene.Scene; | |
import javafx.scene.control.ProgressBar; | |
import javafx.scene.effect.InnerShadow; | |
import javafx.scene.image.Image; | |
import javafx.scene.image.ImageView; |
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 javafx.application.Application; | |
import javafx.scene.Scene; | |
import javafx.scene.effect.DisplacementMap; | |
import javafx.scene.effect.Effect; | |
import javafx.scene.effect.FloatMap; | |
import javafx.scene.image.Image; | |
import javafx.scene.image.ImageView; | |
import javafx.scene.layout.StackPane; | |
import javafx.scene.paint.Color; |
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.File; | |
import java.util.Optional; | |
import javafx.application.Application; | |
import javafx.event.ActionEvent; | |
import javafx.scene.Scene; | |
import javafx.scene.control.Button; | |
import javafx.scene.layout.FlowPane; | |
import javafx.stage.FileChooser; | |
import javafx.stage.Stage; |
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 sys | |
# prints the path to pythons executable | |
print (sys.executable) |
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
let cfg_fnc = function(cfg = { | |
duration: 10, | |
delays: [3, 6] | |
}) { | |
return "duration: " + cfg.duration + ", delays: " + cfg.delays; | |
} | |
// prints "duration: 5, delays: undefined" | |
console.log(cfg_fnc({duration:5})); |