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
var canvas = document.getElementById('plot'); | |
var context = canvas.getContext('2d'); | |
var CHART_SIZE = 100; | |
var MAX_VALUE = Number.MAX_SAFE_INTEGER; | |
var MIN_VALUE = 0; | |
var chartSize = CHART_SIZE; | |
var chartData = []; | |
var i = 0; |
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.HashMap; | |
import java.util.Map; | |
import java.util.function.Supplier; | |
public class TemplateEvaluator { | |
private Map<String, Supplier<String>> keywords = new HashMap<>(); | |
public void addTemplateVariable(String keyword, Supplier<String> template) { | |
keywords.put(keyword, template); | |
} |