Skip to content

Instantly share code, notes, and snippets.

View grtjn's full-sized avatar

Geert grtjn

View GitHub Profile
@grtjn
grtjn / task-lib.xqy
Created July 26, 2022 16:33
Task helper lib
xquery version "1.0-ml";
module namespace tl = "http://marklogic.com/task-lib";
import module namespace tb="ns://blakeley.com/taskbot" at "/lib/taskbot/taskbot.xqm";
declare namespace eval="xdmp:eval" ;
declare option xdmp:mapping "false";
@grtjn
grtjn / build.gradle
Last active July 13, 2024 17:01
Gradle runScript
def resolveTokens(str) {
if (str != null) {
Map<String, String> customTokens = mlAppConfig.getCustomTokens();
if (customTokens != null) {
for (String key : customTokens.keySet()) {
if (key != null) {
String value = customTokens.get(key);
if (value != null) {
str = str.replace(key, value);
}