Skip to content

Instantly share code, notes, and snippets.

@BoDonkey
BoDonkey / iconsList.txt
Created June 15, 2023 09:58
List of icons in Vue-material-design-icons v4.12.1
AbTesting
Abacus
AbjadArabic
AbjadHebrew
AbugidaDevanagari
AbugidaThai
AccessPoint
AccessPointCheck
AccessPointMinus
AccessPointNetwork
@BoDonkey
BoDonkey / analyze-css.js
Created January 28, 2025 13:11
Code for analyzing CSS created by the Astro build process - useful in debugging postcss extensions
/**
* CSS Build Analyzer
*
* Analyzes CSS files in an Astro build output directory, generating statistics and
* processed versions for analysis.
*
* Usage:
* 1. Place this script in your Astro project
* 2. Run after building: node analyze-css.js
*
@BoDonkey
BoDonkey / sync-translations.js
Created March 12, 2025 10:28
Node.js process for comparing and translating missing key:string values in two JSON files
const fs = require('fs');
const path = require('path');
const https = require('https');
/**
* Translates text using Google Translate API (free method)
*
* @param {string} text - Text to translate
* @param {string} targetLang - Target language code (e.g., 'es', 'fr', 'de')
* @returns {Promise<string>} - Translated text
@BoDonkey
BoDonkey / sort-json-keys.js
Created March 12, 2025 12:44
Node.js gist to alphabetize translation key:string value pairs in JSON files
const fs = require('fs');
const path = require('path');
/**
* Sorts the keys of a JSON object alphabetically and returns a new sorted object
*
* @param {Object} obj - The JSON object to sort
* @returns {Object} - A new object with sorted keys
*/
function sortObjectKeys(obj) {
@BoDonkey
BoDonkey / custom_pub_chat_template_gemma4.jinja
Created June 4, 2026 17:24 — forked from jscott3201/custom_pub_chat_template_gemma4.jinja
A drop-in replacement chat template for google/gemma-4-31B-it tuned for open-source agentic coding harnesses.
{#---------------------------------------------------------------------
custom_pub_chat_template_gemma4.jinja
=====================================
A public, harness-friendly fork of Google's Gemma 4 chat template,
tuned for open-source agentic coding harnesses like:
- anomalyco/opencode (https://github.com/anomalyco/opencode)
- earendil-works/pi (https://github.com/earendil-works/pi)
- openclaw, OpenHarness, similar Claude-Code-style harnesses
WHY THIS FORK EXISTS