This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| Language: FoxPro | |
| Author: Rick Strahl <rstrahl@west-wind.com> | |
| Usage: | |
| <script src="./scripts/highlight.min.js"></script> | |
| <script src="./scripts/highlightjs-addins/foxpro.js"></script> | |
| */ | |
| /** @type LanguageFn */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Diagnostics; | |
| using System.Linq; | |
| using System.Threading.Tasks; | |
| using Windows.Media.SpeechRecognition; | |
| using System.Windows.Controls; | |
| using System.Windows.Input; | |
| using Westwind.Utilities; | |
| using MarkdownMonster.Windows; | |
| using Windows.Globalization; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Paste into LinqPad | |
| // dotnet add package NuGet.Protocol | |
| async Task Main() | |
| { | |
| // package sources | |
| string[] sources = ["/projects/Nuget", "https://api.nuget.org/v3/index.json"]; | |
| // Package loader: specify output folder for package assemblies | |
| var pack = new NuGetPackageLoader(@"d:\temp\Packages"); | |
| await pack.LoadPackageAsync("Westwind.Ai", "0.2.4.2", sources); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| CLEAR | |
| SET PROCEDURE TO wwapi ADDITIVE && or whereever wwHeap lives | |
| LOCAL loHeap as wwHeap | |
| loHeap = CREATEOBJECT("wwHeap") | |
| lnIterations = 10000000 && 10 million characters | |
| lcData = REPLICATE("0123456789",lnIterations / 10) | |
| loHeap.SetData(lcData) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections.Generic; | |
| using System.IO; | |
| using System.Net; | |
| using System.Net.Security; | |
| using System.Net.Sockets; | |
| using System.Text; | |
| using System.Threading; | |
| using System.Threading.Tasks; | |
| using MarkdownMonster.Controls; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /// <summary> | |
| /// Helper function that checks to see if the WebView control is installed | |
| /// and if not prompts to install it. | |
| /// | |
| /// Should be called during app startup to ensure the WebView Runtime is available. | |
| /// </summary> | |
| /// <param name="showDownloadUi"></param> | |
| /// <returns></returns> | |
| public static bool IsWebViewVersionInstalledUi(bool showDownloadUi = false) | |
| { |
This file has been truncated, but you can view the full file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Tracing enabled @ Tue Sep 26 20:10:54 2023 GMT | |
| --- Invoked dotnet [version: 8.0.0-preview.7.23375.6, commit hash: 65b696cf5e7599ad68107138a1acb643d1cedd9d] main = { | |
| C:\Program Files\dotnet\dotnet.exe | |
| MarkdownMonster.dll | |
| --roll-forward | |
| LatestMajor | |
| --roll-forward-to-prerelease | |
| 1 | |
| } | |
| Reading fx resolver directory=[C:\Program Files\dotnet\host\fxr] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| void Main() | |
| { | |
| var builder = new MarkdownPipelineBuilder() | |
| //.UseAdvancedExtensions() | |
| .UseMediaLinks() | |
| .Build(); | |
| var md = """ | |
| ## Plain Image Link | |
|  |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public static JObject CreateGistPostJson(GistItem gist) | |
| { | |
| dynamic obj = new JObject(); | |
| obj.Add("description", new JValue(gist.description)); | |
| obj.Add("public", gist.isPublic); | |
| obj.Add("files", new JObject()); | |
| obj.files.Add(gist.filename, new JObject()); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections.Generic; | |
| using System.Diagnostics; | |
| using System.Net.Sockets; | |
| using System.Net; | |
| using System.IO; | |
| using System.Threading; | |
| namespace Westwind.Http.Server | |
| { |
NewerOlder