Skip to content

Instantly share code, notes, and snippets.

View arenagroove's full-sized avatar

Luis Alberto Martinez arenagroove

  • Less Rain GmbH
  • Vilanova i la Geltrú, Catalonia, Spain
  • 09:23 (UTC +01:00)
  • LinkedIn in/luis-martinez-lr
View GitHub Profile
@arenagroove
arenagroove / Export-FolderTree.ps1
Created July 2, 2025 02:15
PowerShell script to export a UTF-8 tree view of the current folder structure. Saves output as project-folder-structure.txt.
# Export-FolderTree.ps1
# Generates a UTF-8 tree view of the current folder structure
# Output: project-folder-structure.txt in the same directory
# Set root and output file
$rootPath = Get-Location
$outputFile = Join-Path $rootPath "project-folder-structure.txt"
# Force UTF-8 encoding
$encoding = [System.Text.Encoding]::UTF8
@arenagroove
arenagroove / creating-linkedin-carousels-2025.md
Created June 26, 2025 10:39
A practical guide I compiled after testing and reviewing current best practices. It includes technical specs, Photoshop setup, tool recommendations, and accurate preview info. Based on multiple trusted sources.

Ultimate Guide: Creating LinkedIn Carousels in Photoshop (2025)

1. Planning and Storyboarding

Define Your Objective

Decide if your carousel is for:

  • Education
  • Storytelling
@arenagroove
arenagroove / generative-critique-assistant.md
Created June 24, 2025 13:52
Custom GPT: Reflective critique & rewrite tool using roles, lenses, and drift levels

Generative Critique Assistant

🎯 Role

You are the Generative Critique Assistant — a reflective tool that analyzes and rewrites user-submitted text based on selected critique roles, interpretive lenses, and drift levels.

🧠 Behavior Rules

  • Always return two sections:
    1. Critique — concise, analytical review using the selected lenses and role
    2. Rephrased — a rewritten version shaped by the critique and drift level
@arenagroove
arenagroove / Encode-ScrubVideo.ps1
Last active June 13, 2025 03:56
PowerShell script to generate scrub-optimized video files with FFmpeg. Includes poster frames (JPG, PNG, WebP) and a metadata report via ffprobe. Outputs are grouped in timestamped folders.
<#
.SYNOPSIS
Encodes a video optimized for timeline scrubbing, generates posters, and saves metadata.
.DESCRIPTION
Produces a lightweight video with a tight GOP structure, suitable for accurate scrubbing.
Also extracts a frame for preview images (JPG, PNG, WebP), and generates a text report
of key video properties using ffprobe. Allows control of FFmpeg quality and compression settings.
.PARAMETER InputFile
@arenagroove
arenagroove / README-ffmpeg-sprite-generator.md
Last active May 15, 2025 05:05
A PowerShell script that pulls evenly spaced frames from a video or GIF and arranges them into a single image strip, either horizontal or vertical. You can resize the frames, adjust spacing between them, and optionally convert the result to WebP. It can also generate a JSON file with metadata. Useful for web-based sprite animations, like CSS zoe…

FFmpeg Sprite Generator — PowerShell Script

Extracts N evenly spaced frames from a video or GIF and combines them into a single sprite strip (horizontal or vertical). Supports optional resizing, padding between frames, and JSON metadata export.

Features:

  • Automatically detects media type (GIF or video)
  • Supports frame-accurate or keyframe-based seeking
  • Optional resizing with -ResizeTo
@arenagroove
arenagroove / 00-README.md
Last active July 11, 2025 15:44
Rewrite content in a clear, honest, and human tone—free from hype, jargon, and robotic phrasing. Supports structured rewrites, style presets (like Minimalist, Playful, Storyteller, Poetic), and context-aware, clarity-focused improvements with transparent reasoning.

✍️ Natural Style Writing Assistant

This assistant helps you rewrite content in a clear, honest, and human tone — free from hype, jargon, and robotic phrasing.
It supports structured rewrites, tone corrections, and clarity-focused improvements using modular prompt logic.


📁 Included Files

| Gist Filename | Description |

@arenagroove
arenagroove / Generate-WordPress-Like-Thumbnails.ps1
Last active May 13, 2025 06:55
PowerShell + FFmpeg script to generate WordPress-like thumbnails with enforced aspect ratio, cropping, format conversion, optional metadata, and per-dimension output folders. Supports both width-driven and height-driven resizing. Optimized for speed and automation.
param (
[string[]]$targetWidths = @(), # Provide either this...
[string[]]$targetHeights = @(), # ...or this
[string[]]$outputFormats = @("webp"),
[string] $forceAspectRatio = $null,
[string] $nameSuffix = "",
[string] $inputFolder = ".",
[string] $outputFolder = ".",
[bool] $overwrite = $true,

:focus-visible — Native vs. JavaScript Polyfill Comparison

Compare the browser-native :focus-visible CSS selector with a lightweight JavaScript polyfill that applies a .focus-visible class when focus is triggered via keyboard.

Why This Matters

Native :focus-visible behavior is inconsistent across browsers — especially for <input> and <textarea> elements. Nowadays, a polyfill is still necessary to ensure consistent, accessible focus handling across all elements and environments.

Keyboard Interaction

  • Shows the focus ring only when using Tab, Enter, or arrow keys.
@arenagroove
arenagroove / README-modular-type-scale.scss.md
Created May 3, 2025 03:43
Sass mixins and utilities for generating modular type scales with responsive behavior. Supports static, fluid, interpolated, and manual step-to-step modes with clamp() output and CSS variables.

Modular Type Scale Sass Mixins

Sass mixins and utility functions for generating modular, responsive typographic scales using CSS custom properties. It includes four scalable strategies:

  1. Static Modular Scale – based on exponential ratios without responsive behavior.
  2. Fluid Modular Scale – container-based scaling using clamp(), unit-based steps, and bias.
  3. Viewport Interpolation – responsive scaling using slope-intercept interpolation with vw.
  4. Step-to-Step Interpolation – interpolates between explicitly defined steps using clamp().

All approaches output CSS variables such as --ts-h1, --ts-h2, etc., which can be consumed in layout or component styles.

@arenagroove
arenagroove / README-cssUtils-javascript.md
Last active April 27, 2025 06:44
JavaScript utility for reading and parsing CSS custom properties from elements. Supports unit-aware numeric parsing (px, em, rem, %, vw, etc.) and returns raw or computed values. Includes support for calc() and var() chains.

CSSUtils – CSS Variable Inspector Utility

A utility object for reading and interpreting CSS custom properties (--variables) from DOM elements.

Features

  • ✅ Get raw CSS variable values
  • ✅ Optionally parse numeric values (with px, em, rem, %, vw, etc.)
  • ✅ Supports responsive units and live layout context
  • ✅ Safe fallback: returns NaN when parsing fails