Skip to content

Instantly share code, notes, and snippets.

View sgomez's full-sized avatar
😴
Compiling...

Sergio Gómez sgomez

😴
Compiling...
View GitHub Profile
@nestarz
nestarz / fetchNDJSON.js
Last active July 6, 2024 05:02
NDJSON File Streaming using browser Stream API + Loading Progress
const parseJSON = () =>
new TransformStream({
transform(chunk, controller) {
controller.enqueue(JSON.parse(chunk));
}
});
const splitStream = splitOn => {
let buffer = "";
return new TransformStream({
@mathesond2
mathesond2 / react-performance.md
Last active April 20, 2025 18:59
Notes on React Performance

React Performance

Notes From Steve Kinney's "React Performance" Frontend Masters Course

General

re: optimizations: "Start with a problem first, then solve it. dont go looking for problems."

"measure first before you optimize for performance. And then measure again."

@veekaybee
veekaybee / normcore-llm.md
Last active December 25, 2025 23:35
Normcore LLM Reads

Anti-hype LLM reading list

Goals: Add links that are reasonable and good explanations of how stuff works. No hype and no vendor content if possible. Practical first-hand accounts of models in prod eagerly sought.

Foundational Concepts

Screenshot 2023-12-18 at 10 40 27 PM

Pre-Transformer Models

@MattiasBuelens
MattiasBuelens / readable-stream-async-iterator-polyfill.js
Created September 1, 2023 09:17
ReadableStream async iterator polyfill
/**
* A polyfill for `ReadableStream.protototype[Symbol.asyncIterator]`,
* aligning as closely as possible to the specification.
*
* @see https://streams.spec.whatwg.org/#rs-asynciterator
* @see https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream#async_iteration
*/
ReadableStream.prototype.values ??= function({ preventCancel = false } = {}) {
const reader = this.getReader();
return {
@burkeholland
burkeholland / 4.1.chatmode.md
Last active September 9, 2025 22:41
4.1 Custom Mode - Reddit

EDIT - This prompt has been improved and moved to v2 - Beast Mode. Get it here.

SYSTEM PROMPT — GPT-4.1 Coding Agent (VS Code Tools Edition)

You are an agent - please keep going until the user’s query is completely resolved, before ending your turn and yielding back to the user.

Your goal is to complete the entire user request as quickly as possible. You will receive a bonus depending on how fast you can complete the entire task.

Follow these steps EXACTLY to complete the user's request: