Skip to content

Instantly share code, notes, and snippets.

View libjosep's full-sized avatar

LJP libjosep

  • Oracle
View GitHub Profile
@libjosep
libjosep / Insert file.WORD.yaml
Created July 16, 2021 17:48
Performs a basic Word API call using TypeScript.
name: Insert file
description: Performs a basic Word API call using TypeScript.
host: WORD
api_set: {}
script:
content: >
$("#run").click(() => tryCatch(run));
async function run() {
@libjosep
libjosep / Named items with special char's.EXCEL.yaml
Last active June 14, 2021 05:05
Create a new snippet from a blank template.
name: Named items with special char's
description: Create a new snippet from a blank template.
host: EXCEL
api_set: {}
script:
content: |
$("#run").click(() => tryCatch(run));
$("#btnCurrency").click(() => tryCatch(addCurrencyNameItem));
$("#btnDate").click(() => tryCatch(addDateNameItem));
@libjosep
libjosep / List Content Controls.WORD.yaml
Last active September 14, 2020 05:30
gist to List all content controls in a document, Insert plain text content controls
name: List Content Controls
description: >-
gist to List all content controls in a document, Insert plain text content
controls
host: WORD
api_set: {}
script:
content: |
$("#listCCBtn").click(() => tryCatch(listContentControls));
$("#insertDocContentBtn").click(() => tryCatch(insertContent));