Posts

RxJS - Buffer with a Pipe Chain

Get One Event from the Group

A buffer serves to aggregate multiples of the same observable event type. However, the example shown for buffer in the official RxJS docs assumes that you have an originating source in the start of the chain which serves as the group of events for buffering as shown in here.

Categories: #JavaScript
Tags: #RxJS
Rustup - Serde - Read JSON File

This is an example on using the serde_json library to read JSON data stored in a file. Serde doesn't have a method to directly read from your file directory and get the data from the JSON file, so it will be a two-step process.

Categories: #rust
Rustup Toolchain

Configure Rust Environments

The official rustup toolchain allows you to manage different versions of Rust along with their configurations. Different Rust applications or projects might force you to use a specific version of Rust.

Categories: #rust
Vite - Local Plugin

Custom File Type Change Detection

Vite has a plugin system where a transform may be performed on file type changes in the following:

https://vitejs.dev/guide/api-plugin.html#transforming-custom-file-types

Even though the documentation states that transforms might be performed on "custom file types", attempts to listen to changes for file types other than the common web assets type (.js, .ts, .html, .css) will not work.

Categories: #Tooling #javascript
Tags: #frontend