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.
Posts
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.
Activitus Bar
Reduce the amount of screen real estate space that that default toolbar icons take up on the left side of the window. With this plugin, the icons are shrunken and placed in the lower left corner of the window to get out of your way.
Label Modifications
D3FC provides a nice layer of convenient customization over D3 when working with basic construction of graphs such as when tweaking axis labels. The following examples will be a modification of the base example.
SeleniumBase
To avoid the verbosity of Selenium while still being able to leverage Selenium, one can use SeleniumBase. SeleniumBase provides sensible defaults for testing when you wish to use Selenium. The common testing setup recommended by Selenium called the POM is supported. This is shown by the example: https://github.com/seleniumbase/SeleniumBase/blob/master/examples/boilerplates/base_test_case.py.
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.
Scrollbar Considerations
Many zooming libraries on npm offers the ability to pan images (translate images), after a large image has been zoomed in, however the majority of them do not take consideration of how the movement of the image affects the visibility of scrollbars.