Skip to content

Instantly share code, notes, and snippets.

View fantonangeli's full-sized avatar

Fabrizio Antonangeli fantonangeli

View GitHub Profile
@fantonangeli
fantonangeli / jsongreet.sw.json
Created June 13, 2023 06:54
Greeting workflow
{
"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

Google Apps Script Spreadsheet Utilities and Custom Functions#

These utilities are grouped into related files, for simpler copy & paste to your scripts.

ConvertA1.gs

A couple of helper functions to convert to & from A1 notation.

rangeA1ToIndex(string rangeA1, number index)

@fantonangeli
fantonangeli / MDN.js
Created October 27, 2016 12:39
Mozilla Developer Network ubiquity command
CmdUtils.makeSearchCommand({
name: "mdn",
url: "https://developer.mozilla.org/en-US/search?q={QUERY}",
author: {name:"Fabrizio Antonangeli", email:"fabrizio.antonangeli@gmail.com"},
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",
@fantonangeli
fantonangeli / WordReference.js
Created October 7, 2016 08:02
Wordreference translator ubiquity command
CmdUtils.makeSearchCommand({
name: "WordReference",
url: "http://www.wordreference.com/redirect/translation.aspx?w={QUERY}",
author: {name:"Fabrizio Antonangeli", email:"fabrizio.antonangeli@gmail.com"},
homepage:"http://wordreference.com/",
icon:"http://www.wordreference.com/favicon.ico",
description:"WordReference translator",
parser: {
container: ".WRD tr[id]",
title: ".FrWrd strong",