Skip to content

Instantly share code, notes, and snippets.

@btwalsh
Created August 28, 2018 22:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save btwalsh/c9983859c6870f05a9ae2c9b42f5ce9c to your computer and use it in GitHub Desktop.
Save btwalsh/c9983859c6870f05a9ae2c9b42f5ce9c to your computer and use it in GitHub Desktop.
Shared with Script Lab
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
office-ui-fabric-js@1.4.0/dist/css/fabric.min.css
office-ui-fabric-js@1.4.0/dist/css/fabric.components.min.css
core-js@2.4.1/client/core.min.js
@types/core-js
@microsoft/office-js-helpers@0.7.4/dist/office.helpers.min.js
@microsoft/office-js-helpers@0.7.4/dist/office.helpers.d.ts
jquery@3.1.1
@types/jquery
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment