Skip to content

Instantly share code, notes, and snippets.

View allensu0314's full-sized avatar
🎯
Focusing

oldShade allensu0314

🎯
Focusing
View GitHub Profile
@allensu0314
allensu0314 / test.md
Created July 21, 2020 08:23
Hello World Markdown

Hello World

This is content converted from Markdown!

Here's a JSON sample:

{
  "foo": "bar"
}
@allensu0314
allensu0314 / test.html
Created July 21, 2020 08:24
Hello World Html
<html>
<head>
<style>
h1 {
font-family: Calibri;
}
</style>
</head>
<body>
<h1>Hello World!</h1>
@allensu0314
allensu0314 / Get selected text (Compose).OUTLOOK.yaml
Created August 6, 2020 08:26
Gets the selected text in the item body or subject in Compose mode.
name: Get selected text (Compose)
description: Gets the selected text in the item body or subject in Compose mode.
host: OUTLOOK
api_set: {}
script:
content: |
$("#get-selected-data").click(getSelectedData);
function getSelectedData() {
Office.context.mailbox.item.getSelectedDataAsync(Office.CoercionType.Text, function(asyncResult) {