Skip to content

Instantly share code, notes, and snippets.

@yowl
yowl / Basic API call (JavaScript).EXCEL.yaml
Created November 13, 2020 17:09
Performs a basic Excel API call using plain JavaScript & Promises.
name: Basic API call (JavaScript)
description: Performs a basic Excel API call using plain JavaScript & Promises.
host: EXCEL
api_set: {}
script:
content: |
/**
* Test nullk in array return value
* @customfunction
* @returns {string[][]} A dynamic array with multiple results.
using System.Linq;
using System.Collections.Generic;
public class Program
{
public static int a(int i)
{
return i;
}
@yowl
yowl / ToastNotification.xaml
Created May 16, 2019 12:48
toast using a popup
<UserControl x:Class="TheHub.Silverlight.Controls.ToastNotification"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
x:Name="root">
<Popup x:Name="NotificationPopup" IsHitTestVisible="False" >
<VisualStateManager.VisualStateGroups>
@yowl
yowl / gist:c143f0520fa0544d41a24bce627086fe
Created May 15, 2019 21:11
ld-wasm linker problem in corert
I'm trying to build the wasm target using llvm9 and I'm getting this error on linking
Microsoft (R) Program Maintenance Utility Version 14.20.27508.1
Copyright (C) Microsoft Corporation. All rights reserved.
[ 1%] Linking CXX static library libPortableRuntime.bc
wasm-ld: error: symbol type mismatch: RhpInterfaceDispatch1
>>> defined as WASM_SYMBOL_TYPE_DATA in CMakeFiles/PortableRuntime.dir/__/CachedInterfaceDispatch.cpp.o
>>> defined as WASM_SYMBOL_TYPE_FUNCTION in CMakeFiles/PortableRuntime.dir/__/portable.cpp.o