These utilities are grouped into related files, for simpler copy & paste to your scripts.
A couple of helper functions to convert to & from A1 notation.
| id: foreach | |
| version: '1.0' | |
| specVersion: '0.8.0' | |
| name: foreach | |
| description: foreach flow | |
| functions: | |
| - name: printMessage | |
| type: custom | |
| operation: sysout | |
| start: ForEachState |
| { | |
| "id": "jsongreet", | |
| "version": "1.0", | |
| "specVersion": "0.8", | |
| "name": "Greeting workflow", | |
| "description": "JSON based greeting workflow", | |
| "start": "ChooseOnLanguage", | |
| "functions": [ | |
| { | |
| "name": "greetFunction", |
| 'use strict'; | |
| //SETTINGS | |
| const commentsServiceUrl="https://www.example.com/comments"; | |
| /** | |
| * remove html from a text | |
| * | |
| * @param {string} text the text to clean |
| CmdUtils.makeSearchCommand({ | |
| name: "mdn", | |
| url: "https://developer.mozilla.org/en-US/search?q={QUERY}", | |
| author: {name:"Fabrizio Antonangeli", email:"[email protected]"}, | |
| homepage:"http://developer.mozilla.org/", | |
| icon:"https://developer.cdn.mozilla.net/static/img/opengraph-logo.dc4e08e2f6af.png", | |
| description:"Mozilla Developer Network", | |
| parser: { | |
| container: ".result-list-item", | |
| title: " h4 a", |
| CmdUtils.makeSearchCommand({ | |
| name: "WordReference", | |
| url: "http://www.wordreference.com/redirect/translation.aspx?w={QUERY}", | |
| author: {name:"Fabrizio Antonangeli", email:"[email protected]"}, | |
| homepage:"http://wordreference.com/", | |
| icon:"http://www.wordreference.com/favicon.ico", | |
| description:"WordReference translator", | |
| parser: { | |
| container: ".WRD tr[id]", | |
| title: ".FrWrd strong", |