Skip to content

Instantly share code, notes, and snippets.

View dyong0's full-sized avatar

Junyong / @JJ dyong0

  • Mercari
  • Tokyo, Japan
View GitHub Profile
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;
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);
}