Skip to content

Instantly share code, notes, and snippets.

@lowfatprophet
lowfatprophet / biome.json
Last active November 1, 2025 14:33
Biome configuration file
{
"$schema": "https://biomejs.dev/schemas/2.3.2/schema.json",
"formatter": {
"enabled": true,
"indentStyle": "space",
"indentWidth": 2
},
"javascript": {
"formatter": {
"semicolons": "always",
@lowfatprophet
lowfatprophet / config.toml
Last active November 1, 2025 23:01
Helix Editor Configuration; further options can be found here: https://docs.helix-editor.com/configuration.html
theme = "monokai_pro"
[editor]
line-number = "relative"
mouse = true
rulers = [120]
completion-replace = true
end-of-line-diagnostics = "hint"
color-modes = true
@lowfatprophet
lowfatprophet / snippets.js
Last active October 31, 2025 10:55
JavaScript snippets are my way to store useful small JavaScript functions to copy & paste into new projects without having to handle libraries or similar.
/**
* Yields a value from deeply nested objects.
* @param {Record<String, Any>} down The object to drill in.
* @param {String} until Period-separated string of keys inside `down` object.
* @returns {Any} Returns `undefined` if any key of `until` is not valid.
* @throws {TypeError} Throws if an undefined key is present in `until`.
* @example
* ```js
* const exampleObj = {
* layer1: {
@lowfatprophet
lowfatprophet / .wp-env.json
Last active January 17, 2025 10:48
A comprehensive config file for developing with @wordpress/env
{
"$schema": "https://raw.githubusercontent.com/WordPress/gutenberg/trunk/schemas/json/wp-env.json",
"themes": ["."],
"plugins": ["Create Block Theme"],
"config": {
"WP_SITEURL": "<your preferred base URI, `localhost` for local dev>",
"WP_HOME": "<your preferred base URI, `localhost` for local dev>"
}
}
@lowfatprophet
lowfatprophet / tsconfig.json
Last active October 31, 2025 10:56
The default TypeScript configuration for all of my projects.
{
"compilerOptions": {
/* Base options */
"esModuleInterop": true,
"skipLibCheck": true,
"target": "ESNext",
"verbatimModuleSyntax": true,
"moduleDetection": "force",
"module": "ESNext",
"lib": [