### Install Rx.NET Packages Source: https://github.com/wellwind/wellwind.github.io/blob/master/src/assets/blog/notes-for-rx-net.md Instructions for installing the `System.Reactive` NuGet package using both the .NET CLI and PowerShell Package Manager. This is the first step to integrate Reactive Extensions into a .NET project. ```shell dotnet add package System.Reactive ``` ```powershell Install-Package System.Reactive ``` -------------------------------- ### Inno Setup Registry Entry Example Source: https://github.com/wellwind/wellwind.github.io/blob/master/src/assets/blog/inno-setup-environment-path-registry-by-code.md This Inno Setup Registry entry demonstrates how to set a string value in the registry. It defines the root key, subkey path, value type, name, and data for a program's installation path setting. ```Inno Setup [Registry] Root: HKLM; Subkey: "Software\My Company\My Program\Settings"; ValueType: string; ValueName: "InstallPath"; ValueData: "{app}" ``` -------------------------------- ### Install http-server Globally via npm Source: https://github.com/wellwind/wellwind.github.io/blob/master/src/assets/blog/react-tutorial-1-hello-world.md This command installs the `http-server` package globally, allowing you to serve static files from your local machine. It's useful for developing web applications that require an HTTP server, especially when direct file access might cause issues. ```Shell npm install http-server -g ``` -------------------------------- ### Initialize Intro.js Guided Tour Source: https://github.com/wellwind/wellwind.github.io/blob/master/src/assets/blog/front-end-intro-js.md JavaScript code snippet demonstrating how to start the Intro.js guided tour. It attaches an event listener to a button, which, when clicked, initializes and begins the tour defined by the `data-step` and `data-intro` attributes. ```JavaScript document.getElementById('start').addEventListener('click', function() { introJs().start(); }); ``` -------------------------------- ### Install Babel CLI Globally via npm Source: https://github.com/wellwind/wellwind.github.io/blob/master/src/assets/blog/react-tutorial-1-hello-world.md This command installs the Babel command-line interface globally. The Babel CLI is used for offline compilation of JavaScript and JSX files, transforming them into standard JavaScript that browsers can understand without needing an in-browser compiler. ```Shell npm install -g babel-cli ``` -------------------------------- ### Enable Progress Bar in Intro.js Tour Source: https://github.com/wellwind/wellwind.github.io/blob/master/src/assets/blog/front-end-intro-js.md This JavaScript example shows how to add a progress bar to your Intro.js guided tour. By calling `setOption('showProgress', true)` before `start()`, users can visually track their progress through the steps. ```JavaScript introJs() .setOption('showProgress', true) .start(); ``` -------------------------------- ### Publish .NET Core Application to Output Directory Source: https://github.com/wellwind/wellwind.github.io/blob/master/src/assets/blog/inno-setup-continuous-integration-with-azure-devops.md Publishes a .NET Core application to a specified output directory (`dist`), which is then used as the source for the Inno Setup installer in a CI pipeline. ```powershell dotnet publish -o dist ``` -------------------------------- ### Copy Inno Setup Installer to Azure DevOps Artifact Staging Source: https://github.com/wellwind/wellwind.github.io/blob/master/src/assets/blog/inno-setup-continuous-integration-with-azure-devops.md An Azure DevOps YAML task that copies the generated Inno Setup installer (`Setup.exe`) from its output directory to the `$(build.artifactstagingdirectory)`, preparing it for artifact publishing. ```yaml - powershell: 'copy Output/Setup.exe $(build.artifactstagingdirectory)' displayName: '複製安裝檔' ``` -------------------------------- ### Configure Inno Setup Source Files from Build Output Source: https://github.com/wellwind/wellwind.github.io/blob/master/src/assets/blog/inno-setup-continuous-integration-with-azure-devops.md Specifies the source paths for files to be included in the Inno Setup installer, pointing to the build output directory (`dist`) from the CI process. It includes the main executable and other application files. ```ini [Files] Source: "dist\{#MyAppExeName}"; DestDir: "{app}"; Flags: ignoreversion Source: "dist\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs ``` -------------------------------- ### Load RxJS from CDN in HTML Source: https://github.com/wellwind/wellwind.github.io/blob/master/src/assets/blog/mastering-rxjs-02-environment-prepare.md This HTML snippet demonstrates how to include RxJS directly in a web page using a CDN link. It features a JavaScript block that uses `rxjs.fromEvent` to capture mouse clicks, applies `filter` and `map` operators to process the events, and then logs the resulting coordinates to the console. This method offers a quick way to get started with RxJS without a build system. ```HTML