Skip to content

Instantly share code, notes, and snippets.

name: Excel - Write and Read
description: Excel - Write and Read
host: EXCEL
api_set: {}
script:
content: |
$("#insert").click(() => tryCatch(insertViaCommonApi));
$("#insert2").click(() => tryCatch(insertViaShapes));
$("#getData").click(() => tryCatch(getImageIdsViaExcelShapes));
$("#delete").click(() => tryCatch(deleteFirstShape));
name: PowerPoint - Write and Read SVG
description: PowerPoint - Write and Read SVG
host: POWERPOINT
api_set: {}
script:
content: |
$("#insert").click(() => tryCatch(insertSvg));
$("#getData").click(() => tryCatch(getDataviaShapes));
var id = 0;
name: Word - Write and Read SVG
description: Word - Write and Read SVG
host: WORD
api_set: {}
script:
content: |
$("#insert").click(() => tryCatch(insertSvg));
$("#insertPng").click(() => tryCatch(insertPng));
$("#clonePng").click(() => tryCatch(clonePng));
$("#getData").click(() => tryCatch(getDataviaContentControls));
@theboyknowsclass
theboyknowsclass / Blank snippet.POWERPOINT.yaml
Created December 7, 2021 16:04
Create a new snippet from a blank template.
name: Blank snippet
description: Create a new snippet from a blank template.
host: POWERPOINT
api_set: {}
script:
content: |-
$("#add").click(run);
$("#read").click(read);
const key = "MyKey"
name: Save Settings Test
description: Save Settings Test
host: POWERPOINT
api_set: {}
script:
content: |
$("#add").click(run);
$("#read").click(read);
const key = "MyKey";
name: PowerPoint - Write and Read SVG (2)
description: PowerPoint - Write and Read SVG
host: POWERPOINT
api_set: {}
script:
content: |
$("#insert").click(() => tryCatch(insertSvg));
$("#getData").click(() => tryCatch(getDataviaShapes));
var id = 0;
@theboyknowsclass
theboyknowsclass / Basic API call (TypeScript).EXCEL.yaml
Created May 27, 2022 09:51
Performs a basic Excel API call using TypeScript.
name: Basic API call (TypeScript)
description: Performs a basic Excel API call using TypeScript.
host: EXCEL
api_set: {}
script:
content: |
$("#run").click(() => tryCatch(getRangeValues));
/* istanbul ignore next */
const getRangeValues = async (): Promise<string[][]> => {
name: Test Read function
description: Reads from Excel Range
host: EXCEL
api_set: {}
script:
content: |
$("#run").click(() => tryCatch(getRangeValues));
/* istanbul ignore next */
const getRangeValues = async (): Promise<string[][]> => {
name: Test Read function
description: Reads from Excel Range
host: EXCEL
api_set: {}
script:
content: |
$("#run").click(() => tryCatch(getRangeValues));
/* istanbul ignore next */
const getRangeValues = async (): Promise<string[][]> => {
@theboyknowsclass
theboyknowsclass / Basic API call (Office 2013).POWERPOINT.yaml
Last active July 20, 2022 15:26
Executes a basic PowerPoint API call using the "common API" syntax (compatible with Office 2013).
name: Basic API call (Office 2013)
description: >-
Executes a basic PowerPoint API call using the "common API" syntax (compatible
with Office 2013).
host: POWERPOINT
api_set: {}
script:
content: |
$("#run").click(run);