Skip to content

Instantly share code, notes, and snippets.

View rlarson20's full-sized avatar

RJ Larson rlarson20

  • AI Trainer Contractor
  • NYC, New York
  • 02:29 (UTC -04:00)
View GitHub Profile

User

I've been putting off the GPU integration for too long. Help me add GPU support using wgpu, treating me like someone who doesn't have much experience with GPU programming in general.

Claude Opus 4.5

GPU Integration with wgpu for Volta

I'll help you add GPU support to your ML framework using wgpu. Since you mentioned you don't have much GPU programming experience, I'll explain concepts as we go.

Understanding GPU Programming Basics

Before diving into code, let me explain a few key concepts:

@rlarson20
rlarson20 / OneTab_Firefox_Export.js
Created November 12, 2025 17:25
I was sick of not having an easy export for OneTab, so I did a bit of unpacking of the extension, figured out where they store the tabs, and parsed the data structure into some usable JSON.
//this is for getting all the tabs in a JSON export from onetab in firefox, probably works with chrome too but havent tested as I don't use it anymore
//I intentionally did not include groupID or tabID as I had no use for them
//go to about:debugging#/runtime/this-firefox, find the OneTab extension, and enter this in the console after clicking Inspect
chrome.storage.local.get("state").then(({ state }) => {
const parsed = state ? JSON.parse(state) : {};
const exported = parsed.tabGroups.map((g) => ({
groupName: g.label || null,
starred: !!g.starred,
locked: !!g.locked,
created: g.createDate,