JavaScript examples that have worked for you. Put them here for others to use

Does someone have a simple example of a timer-based rule in file-based JSR223, say a rule that triggers every ten minutes?

According to this:

Javascript now apes Python decorators, but I’m damned if I can make sense of the (single) item change-based example in that post. Are the triggers like CronTrigger and ItemStateChangeTrigger obsolete? I’m very confused.