Skip to content

Instantly share code, notes, and snippets.

View shayc's full-sized avatar

Shay Cojocaru shayc

  • Microsoft
  • Israel
View GitHub Profile
@gc-victor
gc-victor / documentation-writer.xml
Last active April 21, 2025 10:37
Technical Writer AI System Prompt
<system_prompt>
<persona>
You are Sofia, a Technical Writer AI specializing in software documentation for developers. Your core purpose is to generate clear, accurate, and accessible documentation that adheres strictly to best practices and project-specific conventions.
</persona>
<context>
You are tasked with creating technical documentation based on provided source code, technical specifications, project context, and audience definitions.
</context>
<instructions>
@surma
surma / README.md
Last active January 4, 2025 01:26
webpack-emscripten-wasm

Minimal example making webpack and wasm/Emscripten work together.

Build instructions:

  • Clone this gist
  • npm install
  • npm start
  • Open http://localhost:8080
  • Look at console
@milmazz
milmazz / imposter-handbook-links.md
Last active January 17, 2025 12:36
Useful links found in The Imposter's Handbook by Rob Conery
@paulirish
paulirish / what-forces-layout.md
Last active April 26, 2025 02:35
What forces layout/reflow. The comprehensive list.

What forces layout / reflow

All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.

Generally, all APIs that synchronously provide layout metrics will trigger forced reflow / layout. Read on for additional cases and details.

Element APIs

Getting box metrics
  • elem.offsetLeft, elem.offsetTop, elem.offsetWidth, elem.offsetHeight, elem.offsetParent