Created
August 28, 2018 22:15
-
-
Save btwalsh/c9983859c6870f05a9ae2c9b42f5ce9c to your computer and use it in GitHub Desktop.
Revisions
-
btwalsh created this gist
Aug 28, 2018 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,34 @@ name: Blank snippet description: '' author: btwalsh host: EXCEL api_set: {} script: content: |- /** @CustomFunction */ function multiply(num1: number, num2: number): number { return num1 * num2; } /** @CustomFunction */ function toHex(red: number, green: number, blue: number): string { var rgb = blue | (green << 8) | (red << 16); return '#' + ("00" + rgb.toString(16)).slice(-6); } language: typescript libraries: | https://appsforoffice.microsoft.com/lib/1/hosted/office.js @types/office-js [email protected]/dist/css/fabric.min.css [email protected]/dist/css/fabric.components.min.css [email protected]/client/core.min.js @types/core-js @microsoft/[email protected]/dist/office.helpers.min.js @microsoft/[email protected]/dist/office.helpers.d.ts [email protected] @types/jquery