Skip to content

Instantly share code, notes, and snippets.

@melMass
melMass / tree-sitter-grammars.json
Created June 1, 2024 17:24
tree-sitter grammar list
{
"ada": "https://github.com/briot/tree-sitter-ada",
"agda": "https://github.com/tree-sitter/tree-sitter-agda",
"angular": "https://github.com/dlvandenberg/tree-sitter-angular",
"apex": "https://github.com/aheber/tree-sitter-sfapex",
"arduino": "https://github.com/ObserverOfTime/tree-sitter-arduino",
"asm": "https://github.com/RubixDev/tree-sitter-asm",
"astro": "https://github.com/virchau13/tree-sitter-astro",
"authzed": "https://github.com/mleonidas/tree-sitter-authzed",
"awk": "https://github.com/Beaglefoot/tree-sitter-awk",

AI Framework Tensor Shape Reference Guide

This guide provides a comprehensive reference for tensor shapes across different AI frameworks and data types.

Important

These are common conventions, not enforced rules

Note

  • Batch dimension (B) is typically the first dimension when present
  • Some frameworks allow flexible dimension ordering through configuration
@melMass
melMass / README.md
Last active July 28, 2025 18:04
Nushell syntax for bat
@melMass
melMass / Auto InspectTree.md
Last active February 2, 2025 15:15
Helper to automatically open `InspectTree`
auto-inspect.mp4

Usage

I usually put this in a local config of my tree-sitter grammars (./.nvim.lua, requires vim.opt.exrc = true, see :h exrc)

For instance:

  • .nvim.lua
@melMass
melMass / !massive panel (by Alexey Kuchinski).md
Last active February 2, 2025 15:19
massive panel (from 2017 converted to py3)

massive panel by Alexey Kuchinski converted to python 3 (nuke 13+)

@melMass
melMass / fal_to_comfy_wan.py
Created August 12, 2025 14:53
Fal Wan Image Trainer lora to ComfyUI
from safetensors.torch import load_file, save_file
import argparse
def convert_lora_keys_for_wan_comfy(input_path, output_path):
try:
state_dict = load_file(input_path)
new_state_dict = {}
print(f"Successfully loaded LoRA from: {input_path}")