Skip to content

Instantly share code, notes, and snippets.

export const getUniqueColorsForShowIds = (showIds: number[]) => {
console.log("colors.length "+colors.length);
console.log("showIds "+showIds);
// get list of indicies in color array
const listOfIndicies: number[] = showIds.map(id => {
// using modulus operator, so if id = 103 and color.length = 100, then colorIndex will be 3
const colorIndex = id % colors.length;
return colorIndex;
});
variables:
MAVEN_CLI_OPTS: "-s ./settings.xml --batch-mode"
MAVEN_OPTS: "-Dmaven.repo.local=.m2/repository -Dhttps.protocols=TLSv1.2"
cache:
paths:
- .m2/repository/
build:
image: maven:latest