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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
clItemBetonadaSobrepeso.setCellFactory(new Callback<TableColumn<ItemBetonada, Boolean>, TableCell<ItemBetonada, Boolean>>() { | |
public TableCell<ItemBetonada, Boolean> call(TableColumn<ItemBetonada, Boolean> param) { | |
return new TableCell<ItemBetonada, Boolean>() { | |
Label label; | |
{ | |
label = new Label(""); | |
label.getStyleClass().add("mixcontroller-icon"); | |
setGraphic(label); | |
} |
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
// https://stackoverflow.com/questions/35969656/how-can-i-generate-the-opposite-color-according-to-current-color | |
function invertColor(hex, bw) { | |
if (hex.indexOf('#') === 0) { | |
hex = hex.slice(1); | |
} | |
// convert 3-digit hex to 6-digits. | |
if (hex.length === 3) { | |
hex = hex[0] + hex[0] + hex[1] + hex[1] + hex[2] + hex[2]; | |
} | |
if (hex.length !== 6) { |
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
<%-- | |
<pre> | |
controllerName: ${controllerName} | |
actionName: ${actionName} | |
themeName: ${themeName} | |
superClass: ${superclass} | |
propertyName: ${propertyName} | |
propertyType: ${propertyType} | |
propertySuperclass: ${propertySuperclass} | |
associationType: ${associationType} |
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
# === Optimized my.cnf configuration for MySQL/MariaDB (on Ubuntu, CentOS, Almalinux etc. servers) === | |
# | |
# by Fotis Evangelou, developer of Engintron (engintron.com) | |
# | |
# ~ Updated December 2021 ~ | |
# | |
# | |
# The settings provided below are a starting point for a 8-16 GB RAM server with 4-8 CPU cores. | |
# If you have different resources available you should adjust accordingly to save CPU, RAM & disk I/O usage. | |
# |