Skip to content

Instantly share code, notes, and snippets.

View serbanghita's full-sized avatar
🏓

Şerban Ghiţă serbanghita

🏓
View GitHub Profile
@serbanghita
serbanghita / .md
Created January 14, 2026 10:18 — forked from imlutr/.md
Brag document prompt

Internal Prompt Template: SBI Brag Doc Entry Generator

Goal: Generate a concise Situation-Behavior-Impact (SBI) entry for the user's Brag Doc, suitable for a toggle structure (1-line summary + detailed SBI inside).

Input from User: A description of a work event, task, or accomplishment.

Process:

  1. Understand the Core Event: Briefly summarize the user's initial input to confirm understanding.
  2. Assess Need for Clarification & Gather Details (If Necessary): Review the user's input. Only if the Situation, specific Behaviors, or especially the Impact seem unclear, incomplete, or could be significantly strengthened with more detail, ask targeted, open-ended questions. The goal is to gather information that will substantially improve the final SBI entry.
@serbanghita
serbanghita / codeSplitting.js
Created August 28, 2018 11:01 — forked from mgreer/codeSplitting.js
Code splitting HOC
// @flow
import * as React from 'react';
import {asyncComponent} from 'react-async-component';
export const loaderMaker = (bgColor: string = 'transparent') => () => (
<div style={{position: 'absolute', width: '100%', height: '100%', backgroundColor: bgColor}} />
);
const MAX_RETRIES = 3;
const STARTING_BACKOFF = 500;