Skip to content

Instantly share code, notes, and snippets.

View ferdysopian's full-sized avatar

Ferdy Sopian ferdysopian

View GitHub Profile
@ferdysopian
ferdysopian / vimeo-scanner.js
Created October 28, 2025 04:47
Extract and manage Vimeo embeds with yt-dlp commands
window.addEventListener('load', () => {
const STORAGE_KEY = 'vimeoScannerCommands';
const STATE_KEY = 'vimeoScannerVisible';
const container = document.createElement('div');
container.style.cssText = `
position: fixed;
bottom: 70px;
left: 50%;
transform: translateX(-50%);
@ferdysopian
ferdysopian / jetengine-taxonomy-term-cast-bug.md
Created October 13, 2025 00:22
Confirmed JetEngine Bug – Calculated Columns mapped as strings when casting to Taxonomy Term

Bug Report: Calculated Columns mapped as strings when using "Cast result to instance of object as Taxonomy Term"

Summary

When using Cast result to instance of object as Taxonomy Term in JetEngine with Include Calculated Columns, all numeric columns are incorrectly mapped as strings.
This causes a type mismatch inside the resulting WP_Term object (term_id, term_taxonomy_id, term_group, count become strings instead of integers), which breaks functions like get_term_link().

Status: Confirmed by Crocoblock Tech Team
The issue has been reproduced and passed to the developers for fixing (as of October 13, 2025).

@ferdysopian
ferdysopian / workers.js
Created September 22, 2022 02:25
A/B testing with same-URL direct access using the Cache API
const NAME = 'myExampleWorkersABTest';
async function fetchWithCache(request, event) {
const requestUrl = request.url || request.href;
const cacheUrl = new URL(requestUrl);
// Construct the cache key from the cache URL
const cacheKey = new Request(cacheUrl.toString(), request);
const cache = caches.default;