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
// This is a Nashorn (JavaScript) script to search out variable definitions in comments and use their values | |
// in other places in the file where placeholder comments are present. | |
// | |
// SYNOPSIS | |
// | |
// jjs variablize.jjs -- ${PATH} | |
// | |
// DESCRIPTION | |
// | |
// Go through file at ${PATH} and search out all variable definitions as per regular expression: |
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
var AT_SECONDS = 0; | |
var INSERT_SECONDS = 0; | |
// Replace the string below with the text of the element containing labels and events that need to be shifted. | |
var STR = ` | |
` | |
// Grab string of timeline labels from attribute 'data-gwd-animation-labels' for an element. Make | |
// timeline space 'at_seconds'. Insert 'insert_seconds' of space. Console output are the new labels. |
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
export const ws = webSocket<WebsocketMessage>(`wss://${location.hostname}:${location.protocol === 'https:' ? 443 : 80}/ws/`); | |
export const wsObserver = ws | |
.pipe( | |
retryWhen(errors => | |
errors.pipe( | |
delay(1000) | |
) | |
) | |
); |