Skip to content

Instantly share code, notes, and snippets.

View adracea's full-sized avatar
💭
Hello There!

Alexandru Dracea adracea

💭
Hello There!
View GitHub Profile
@adracea
adracea / cdx_checker.py
Last active September 22, 2025 10:18
Check list of dependencies against package_lock.json, vibecoded
import json
import argparse
import os
from collections import defaultdict
def parse_cyclonedx_bom(bom_file_path):
"""
Parses a CycloneDX JSON BOM file to extract all component names and their versions.
Args:
@adracea
adracea / DR Ability Test Macro.js
Last active April 24, 2024 14:59
Foundry VTT Pirate Borg Macros
const createTestAbilityOutcomeWithDr = async ({ actor, ability, dr }) =>
game.pirateborg.api.utils.asyncPipe(
game.pirateborg.api.outcomes.testOutcome({
type: `test-${ability}`,
formula: `1d20+@abilities.${ability}.value`,
formulaLabel: `1d20 + ${game.i18n.localize(CONFIG.PB.abilityKey[ability])}`,
data: actor.getData(),
dr: dr
})
)();