Skip to content

Instantly share code, notes, and snippets.

@btwalsh
Created August 28, 2018 22:15
Show Gist options
  • Save btwalsh/c9983859c6870f05a9ae2c9b42f5ce9c to your computer and use it in GitHub Desktop.
Save btwalsh/c9983859c6870f05a9ae2c9b42f5ce9c to your computer and use it in GitHub Desktop.

Revisions

  1. btwalsh created this gist Aug 28, 2018.
    34 changes: 34 additions & 0 deletions Blank snippet.yaml
    Original 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