Skip to content

Instantly share code, notes, and snippets.

@patiboh
patiboh / classloom.js
Created March 11, 2026 07:37 — forked from matthiask/classloom.js
ProseMirror/Tiptap extension for adding classes to nodes, marks and inline text
/**
* ClassLoom Extension
*
* Adds CSS class management to ProseMirror nodes and marks.
* Works with any node type (paragraphs, tables, lists, etc.) and any mark type (italic, bold, etc.).
*
* Features:
* - Multiple class groups targeting different node/mark types
* - Combinable groups (multiple classes from same group)
* - Special "text" type: creates one separate mark per group (allows combining multiple text class groups)
@matthiask
matthiask / classloom.js
Last active March 11, 2026 07:37
ProseMirror/Tiptap extension for adding classes to nodes, marks and inline text
/**
* ClassLoom Extension
*
* Adds CSS class management to ProseMirror nodes and marks.
* Works with any node type (paragraphs, tables, lists, etc.) and any mark type (italic, bold, etc.).
*
* Features:
* - Multiple class groups targeting different node/mark types
* - Combinable groups (multiple classes from same group)
* - Special "text" type: creates one separate mark per group (allows combining multiple text class groups)
@nucliweb
nucliweb / How-Browsers-Work.md
Last active February 28, 2026 21:15
How Browsers Work
2eb2ffcb-56f8-4d93-8dd4-a64e0a2c44cc_1600x742

Image by Susie Lu, take from the Addy Osmani's post


I believe it’s very important to understand how the software that users are working with actually functions. From a purely technical point of view, for the development team the clients are the browsers, and understanding how they read, interpret, and render our code is essential to provide the best possible experience for the users of the application or website.

@swyxio
swyxio / diversity in tech.md
Created October 6, 2020 12:01
diversity in tech resources and organizations. done as part of research for learninpublic.org

US Centric (but often Worldwide)

Don't forget there are many state and city level organizations that can help you too.

Women

  • US centric/Global:
    • Wonder Women Tech - We highlight, celebrate, and educate Women and the Underrepresented in Science, Technology, Engineering, the Arts, Math (STEAM) and Innovation. We nourish the global life cycle of the pipeline through equity, access, and opportunity.
    • FWD: For Women & Diversity Collective - We are a community dedicated to professional inclusion. We host summits & workshops featuring women, P.O.C., and under-represented groups for the experts that we are rather than the boxes that we check.
@swyxio
swyxio / Optimistic, Offline-first apps using serverless functions and GraphQL.md
Last active November 7, 2020 11:11
Optimistic, Offline-first apps using serverless functions and GraphQL

now published as https://www.swyx.io/writing/svelte-amplify-datastore

Optimistic, Offline-first apps using serverless functions and GraphQL

Some thoughts on the challenges of the first 2 and possibly solving them with the latter 2.

Optimistic

In a world where API latency is unpredictable, the way to make user interactions seem instant is essentially by lying to the user. Most implementations of optimistic updates work like this:

@Rich-Harris
Rich-Harris / what-is-svelte.md
Last active March 3, 2026 06:56
The truth about Svelte

I've been deceiving you all. I had you believe that Svelte was a UI framework — unlike React and Vue etc, because it shifts work out of the client and into the compiler, but a framework nonetheless.

But that's not exactly accurate. In my defense, I didn't realise it myself until very recently. But with Svelte 3 around the corner, it's time to come clean about what Svelte really is.

Svelte is a language.

Specifically, Svelte is an attempt to answer a question that many people have asked, and a few have answered: what would it look like if we had a language for describing reactive user interfaces?

A few projects that have answered this question:

@patiboh
patiboh / lessive-maison.md
Last active March 25, 2023 17:44
Recipe / Home - Lessive maison

Lessive maison

Ingrédients [FR]

  • 2 litres d'eau filtrée
  • 150 gr de savon de Marseille râpé
  • 150 gr de cristaux de soude : dégraisse, détache et adoucit l'eau (attention ne pas confondre avec la soude caustique très dangereuse)
  • 6 cuillères à soupe de bicarbonate de soude : neutralise les acides et les odeurs, adoucit l'eau.
  • 1 cuillère à café d'huile essentielle (ici lavandin et citron ) : désinfecte et parfume.
@luruke
luruke / smashingmagazine.js
Last active June 19, 2025 11:33
Source code of the demo "Improving User Flow Through Page Transitions" on Smashing Magazine.
/*
https://www.smashingmagazine.com/2016/07/improving-user-flow-through-page-transitions/
You can copy paste this code in your console on smashingmagazine.com
in order to have cross-fade transition when change page.
*/
var cache = {};
function loadPage(url) {
if (cache[url]) {