Skip to content

Instantly share code, notes, and snippets.

View hiddenkirby's full-sized avatar

Ryan Kirby hiddenkirby

View GitHub Profile
@hiddenkirby
hiddenkirby / Async Manipulate attachments (Item Compose).OUTLOOK.yaml
Created March 30, 2022 14:43
Adds, gets, and removes attachments from a message or an appointment in Compose mode.
name: Manipulate attachments (Item Compose) (1)
description: >-
Adds, gets, and removes attachments from a message or an appointment in
Compose mode.
host: OUTLOOK
api_set: {}
script:
content: >
// logo.png in base64 for testing
@hiddenkirby
hiddenkirby / Manipulate attachments (Item Compose).OUTLOOK.yaml
Created March 29, 2022 03:40
Adds, gets, and removes attachments from a message or an appointment in Compose mode.
name: Manipulate attachments (Item Compose)
description: >-
Adds, gets, and removes attachments from a message or an appointment in
Compose mode.
host: OUTLOOK
api_set: {}
script:
content: >
// logo.png in base64 for testing
@hiddenkirby
hiddenkirby / Manipulate attachments (Item Compose).OUTLOOK.yaml
Last active March 23, 2022 15:43
Adds, gets, and removes attachments from a message or an appointment in Compose mode.
name: Manipulate attachments (Item Compose)
description: >-
Adds, gets, and removes attachments from a message or an appointment in
Compose mode.
host: OUTLOOK
api_set: {}
script:
content: >
// logo.png in base64 for testing
@hiddenkirby
hiddenkirby / Download a Base64 file..OUTLOOK.yaml
Last active April 9, 2021 10:23
Cross-client solution to download a base64 file for the user.
name: Download a Base64 file.
description: Cross-client solution to download a base64 file for the user.
host: OUTLOOK
api_set: {}
script:
content: |
const test_base64_text_file = "VGhpcyBpcyBhIHRlc3QgdGV4dCBmaWxlLgo=";
const newFileName = "test_download_image.txt";
$("#openWindow").click(openWindow);
@hiddenkirby
hiddenkirby / Download a Base64 file..OUTLOOK.yaml
Created April 9, 2021 09:56
Cross-client solution to download a base64 file for the user.
name: Download a Base64 file.
description: Cross-client solution to download a base64 file for the user.
host: OUTLOOK
api_set: {}
script:
content: |
const test_base64_text_file = "VGhpcyBpcyBhIHRlc3QgdGV4dCBmaWxlLgo=";
const newFileName = "test_download_image.txt";
$("#run").click(run);
Verifying my Blockstack ID is secured with the address 1HJ51oXWGKcK4g8pXWLrvXevvvhQztw1dp https://explorer.blockstack.org/address/1HJ51oXWGKcK4g8pXWLrvXevvvhQztw1dp
Verifying my Blockstack ID is secured with the address 1HJ51oXWGKcK4g8pXWLrvXevvvhQztw1dp https://explorer.blockstack.org/address/1HJ51oXWGKcK4g8pXWLrvXevvvhQztw1dp
// hooking woocommerce purchase to updating the users sub level
function woocommerce_subscription_update_hook($order_id = 0){
$user_id = get_current_user_id();
//get product slug from order_id
$order = new WC_Order( $order_id );
$items = $order->get_items();
// hooking woocommerce purchase to updating the users sub level
function get_package_title_from_product_slug($product_slug) {
// fastest way is manual way... also shittiest way .. very fragile
//_log('getting package title for: -->' . $product_slug . '<--');
$result = '';
switch ($product_slug) {
case 'Agent - 1 Property Listing':
// hooking woocommerce purchase to updating the users sub level
function get_package_title_from_product_slug($product_slug) {
// fastest way is manual way... also shittiest way .. very fragile
_log('getting package title for: ' + $product_slug);
switch ($product_slug) {
case 'agent-1-property':