Make a flash card for neet pg 2026

Asking for Preferences
Asking for Preferences
Reading File
Reading File
Running Command

ls /home/daytona/workspace/ 2>/dev/null && mkdir -p /home/daytona/workspace/neet…

Writing File

~/neet-pg-flashcards/create_flashcards.js

const pptxgen = require("pptxgenjs");

const pres = new pptxgen();
pres.layout = "LAYOUT_16x9";
pres.title = "NEET PG 2026 High-Yield Flashcards";
pres.author = "Orris";

// Color palette
const C = {
  navy: "0B1F4B",
  teal: "00B4C6",
  gold: "F5A623",
  white: "FFFFFF",
  lightBlue: "E8F4F8",
  coral: "E84855",
  green: "2ECC71",
  purple: "8E44AD",
  orange: "E67E22",
  darkGray: "2C3E50",
  lightGray: "ECF0F1",
  pink: "E91E8C",
};

// Subject tag colors
const subjectColors = {
  Pharmacology: { bg: "1A237E", accent: "00BCD4", tag: "F5A623" },
  Physiology:   { bg: "004D40", accent: "80CBC4", tag: "FFEB3B" },
  Pathology:    { bg: "4A148C", accent: "CE93D8", tag: "FF5252" },
  Anatomy:      { bg: "0D47A1", accent: "90CAF9", tag: "69F0AE" },
  Biochemistry: { bg: "1B5E20", accent: "A5D6A7", tag: "FF9800" },
  Microbiology: { bg: "B71C1C", accent: "FFCDD2", tag: "40C4FF" },
  Medicine:     { bg: "006064", accent: "80DEEA", tag: "FF6D00" },
  Surgery:      { bg: "33691E", accent: "DCEDC8", tag: "FF4081" },
  OBG:          { bg: "880E4F", accent: "F48FB1", tag: "B2FF59" },
  PSM:          { bg: "263238", accent: "B0BEC5", tag: "FFD740" },
};

const flashcards = [
  {
    subject: "Pharmacology",
    q: "Which drug is the DOC for Pseudomembranous Colitis?",
    a: "Vancomycin (oral) or Fidaxomicin\n\nCaused by C. difficile toxin.\nMetronidazole: 2nd line.\nVancomycin NOT absorbed orally β†’ high gut concentration.",
    mnemonic: "🧠 Van-C stays in the GUT!",
  },
  {
    subject: "Pharmacology",
    q: "Drug of Choice for Status Epilepticus (acute)?",
    a: "IV Lorazepam (1st line)\n\nIf unavailable: IV Diazepam\n2nd line: IV Fosphenytoin / Phenytoin\n3rd line: Phenobarbitone / Propofol",
    mnemonic: "🧠 L-D-P sequence: Lora β†’ Diaze β†’ Phenytoin",
  },
  {
    subject: "Physiology",
    q: "What is the normal Intraocular Pressure (IOP)?",
    a: "10–21 mmHg\n\nβ€’ Measured by Tonometry\nβ€’ >21 mmHg = Ocular Hypertension\nβ€’ Glaucoma damage occurs with sustained elevated IOP\nβ€’ Aqueous humor regulates IOP",
    mnemonic: "🧠 IOP: 10–21 (Remember: 2-1 normal)",
  },
  {
    subject: "Pathology",
    q: "Reed-Sternberg cells are pathognomonic of which condition?",
    a: "Hodgkin's Lymphoma\n\nRS cell: large binucleated cell, 'Owl Eye' appearance\nβ€’ CD15+, CD30+ (positive markers)\nβ€’ CD20βˆ’ (negative)\nβ€’ Most common type: Nodular Sclerosis HL",
    mnemonic: "🧠 RS cells = 'Reading book with OWL eyes'",
  },
  {
    subject: "Anatomy",
    q: "Which nerve is injured in 'Saturday Night Palsy'?",
    a: "Radial Nerve (compression in spiral groove)\n\nFeatures:\nβ€’ Wrist drop\nβ€’ Loss of finger/thumb extension\nβ€’ Spared: Brachioradialis (elbow flexion intact)\nβ€’ Triceps often spared (branch exits above groove)",
    mnemonic: "🧠 Saturday Night = Radial groove = Wrist Drop",
  },
  {
    subject: "Biochemistry",
    q: "Which enzyme is deficient in Phenylketonuria (PKU)?",
    a: "Phenylalanine Hydroxylase (PAH)\n\nβ€’ AR inheritance\nβ€’ Accumulation: Phenylpyruvate, Phenylacetate\nβ€’ Features: Intellectual disability, mousy odor, fair skin\nβ€’ Treatment: Low-Phe diet + BH4 supplementation\nβ€’ Screening: Guthrie test",
    mnemonic: "🧠 PHenylalanine β†’ PHenylketonuria (PAH gone!)",
  },
  {
    subject: "Microbiology",
    q: "What is the vaccine schedule for Hepatitis B in India?",
    a: "0 – 1 – 6 months schedule\n\nβ€’ Birth dose: within 24 hours (prevents perinatal transmission)\nβ€’ National Immunization Schedule (NIS)\nβ€’ Anti-HBs >10 IU/L = protective\nβ€’ HBsAg positive mothers β†’ HBIG + vaccine to newborn",
    mnemonic: "🧠 HepB: 0-1-6 (Birth, 1 month, 6 months)",
  },
  {
    subject: "Medicine",
    q: "What is the classic triad of Hemolytic Uremic Syndrome (HUS)?",
    a: "1. Microangiopathic Hemolytic Anemia (MAHA)\n2. Thrombocytopenia\n3. Acute Renal Failure\n\nMost common cause: E. coli O157:H7 (Shiga toxin)\nTreatment: Supportive; avoid antibiotics in STEC-HUS",
    mnemonic: "🧠 HUS = Hemolysis + Uremia + Small platelets",
  },
  {
    subject: "Surgery",
    q: "What is Cullen's sign and Grey Turner's sign associated with?",
    a: "Acute Pancreatitis (severe hemorrhagic)\n\nβ€’ Cullen's sign: Periumbilical bruising (blood tracks along falciform ligament)\nβ€’ Grey Turner's sign: Flank bruising (retroperitoneal blood)\nβ€’ Both = poor prognosis, hemorrhagic pancreatitis",
    mnemonic: "🧠 Cullen = Umbilicus | Grey Turner = Flanks",
  },
  {
    subject: "OBG",
    q: "What is the most common cause of postpartum hemorrhage (PPH)?",
    a: "Uterine Atony (80% of PPH)\n\n4 T's of PPH:\nβ€’ Tone (Atony) – most common\nβ€’ Tissue (retained placenta)\nβ€’ Trauma (lacerations)\nβ€’ Thrombin (coagulopathy)\n\nManagement: Oxytocin, Ergometrine, Misoprostol",
    mnemonic: "🧠 PPH = 4 T's: Tone, Tissue, Trauma, Thrombin",
  },
  {
    subject: "PSM",
    q: "What is the Maternal Mortality Rate (MMR) target under SDG 2030?",
    a: "< 70 per 100,000 live births\n\nIndia's current MMR: ~97 (SRS 2018-20)\nLeading cause: Hemorrhage (PPH)\n2nd cause: Hypertensive disorders\nSDG 3.1: Reduce global MMR to < 70 by 2030",
    mnemonic: "🧠 SDG MMR goal: 70 (like a 70-speed limit!)",
  },
  {
    subject: "Pharmacology",
    q: "Which drug inhibits Xanthine Oxidase and is used in Gout?",
    a: "Allopurinol (Xanthine Oxidase Inhibitor)\n\nβ€’ Reduces uric acid production\nβ€’ Used in chronic tophaceous gout\nβ€’ Febuxostat: newer XO inhibitor\nβ€’ Acute gout attack: Colchicine / NSAIDs (NOT Allopurinol)\nβ€’ Rasburicase: recombinant uricase (tumor lysis syndrome)",
    mnemonic: "🧠 Allo-PURINOL β†’ reduces PURInes",
  },
  {
    subject: "Pathology",
    q: "Psammoma bodies are seen in which tumors?",
    a: "Mnemonic: PSaMMOMa\nβ€’ Papillary carcinoma of Thyroid (most common)\nβ€’ Serous cystadenocarcinoma of Ovary\nβ€’ Meningioma\nβ€’ Mesothelioma\n\nComposed of concentric calcified lamellae",
    mnemonic: "🧠 PSaMMOMa = Papillary, Serous, Meningioma, Mesothelioma",
  },
  {
    subject: "Physiology",
    q: "Which hormone is produced by the JG cells of the kidney?",
    a: "Renin\n\nβ€’ JG (Juxtaglomerular) cells = modified smooth muscle cells\nβ€’ Stimulus: ↓ BP, ↓ Na+, ↑ sympathetic activity (Ξ²1)\nβ€’ Renin β†’ Angiotensinogen β†’ Angiotensin I β†’ ACE β†’ Ang II\nβ€’ Ang II: vasoconstriction + aldosterone release",
    mnemonic: "🧠 JG = Just Give Renin (when BP is low!)",
  },
  {
    subject: "Anatomy",
    q: "Which muscle is responsible for 'Winging of Scapula'?",
    a: "Serratus Anterior (long thoracic nerve - C5,6,7)\n\nβ€’ Paralysis β†’ scapula 'wings out' medially\nβ€’ Nerve: Long Thoracic Nerve (Never Forget Roots: C5,6,7)\nβ€’ Also: Trapezius paralysis (spinal accessory nerve) β†’ lateral winging",
    mnemonic: "🧠 C5,6,7: Long nerve = Serratus Anterior",
  },
  {
    subject: "Biochemistry",
    q: "What is the rate-limiting enzyme in Cholesterol synthesis?",
    a: "HMG-CoA Reductase\n\nβ€’ Converts HMG-CoA β†’ Mevalonate\nβ€’ Inhibited by: Statins (competitive inhibitors)\nβ€’ Statins used in hypercholesterolemia\nβ€’ Also regulated by: Insulin (activates), Glucagon (inhibits)\nβ€’ Mevalonate pathway β†’ Cholesterol, CoQ10, dolichol",
    mnemonic: "🧠 HMG = Has Major Gating (rate-limiting!)",
  },
  {
    subject: "Microbiology",
    q: "Which organism causes Whooping Cough (Pertussis)?",
    a: "Bordetella pertussis\n\nβ€’ Gram-negative coccobacillus\nβ€’ Toxins: Pertussis toxin (PT), Tracheal cytotoxin, Adenylate cyclase toxin\nβ€’ Phases: Catarrhal β†’ Paroxysmal β†’ Convalescent\nβ€’ Diagnosis: Pernasal swab, PCR\nβ€’ Treatment: Azithromycin\nβ€’ Vaccine: DTaP (acellular pertussis)",
    mnemonic: "🧠 Bordet-ELLA causes BELLA cough (Whooping!)",
  },
  {
    subject: "Medicine",
    q: "What are the diagnostic criteria for Metabolic Syndrome (IDF)?",
    a: "Central Obesity + any 2 of:\nβ€’ TG β‰₯ 150 mg/dL\nβ€’ HDL < 40 (M) / <50 (F) mg/dL\nβ€’ BP β‰₯ 130/85 mmHg\nβ€’ Fasting glucose β‰₯ 100 mg/dL\n\nWaist: >90 cm (Asian males), >80 cm (Asian females)",
    mnemonic: "🧠 Met Syndrome = Belly + 2 more (THDG)",
  },
  {
    subject: "Surgery",
    q: "What is the gold standard investigation for Acute Appendicitis?",
    a: "CT Abdomen (sensitivity ~95%, specificity ~95%)\n\nβ€’ USG: 1st line in children & pregnant women\nβ€’ Alvarado score: scoring system for clinical diagnosis\nβ€’ Rovsing's sign, McBurney's point tenderness\nβ€’ WBC + CRP elevated\nβ€’ Treatment: Appendicectomy (laparoscopic preferred)",
    mnemonic: "🧠 CT is the GOLD standard for Appendicitis (USG = pregnant/kids)",
  },
  {
    subject: "OBG",
    q: "What is the most common presentation of Ectopic Pregnancy?",
    a: "Triad: Amenorrhea + Abdominal pain + Vaginal bleeding\n\nβ€’ Most common site: Ampulla of Fallopian tube (70%)\nβ€’ Investigation: Serum Ξ²-hCG + TVS (transvaginal USG)\nβ€’ Ξ²-hCG >1500 IU/L: gestational sac should be visible on TVS\nβ€’ Treatment: Methotrexate (medical) or Surgery",
    mnemonic: "🧠 Ectopic = A-PAin-Bleeding (Triad)",
  },
  {
    subject: "PSM",
    q: "What is the incubation period of Rabies?",
    a: "Average: 1–3 months (range: 1 week – 1 year)\n\nβ€’ Virus: Rhabdovirus (Lyssavirus genus)\nβ€’ Negri bodies: pathognomonic (hippocampus, Purkinje cells)\nβ€’ Post-exposure prophylaxis (PEP): wound wash + HRIG + vaccine\nβ€’ Pre-exposure: 3 doses (0, 7, 21/28 days)\nβ€’ 100% fatal once symptomatic",
    mnemonic: "🧠 Rabies: 1-3 months avg | Negri bodies = Hippocampus",
  },
  {
    subject: "Pharmacology",
    q: "Which beta-blocker has intrinsic sympathomimetic activity (ISA)?",
    a: "Pindolol (highest ISA)\nAlso: Acebutolol, Oxprenolol, Celiprolol\n\nβ€’ ISA = partial agonist activity\nβ€’ Less resting bradycardia\nβ€’ Less lipid changes\nβ€’ Used in: Hypertension with bradycardia\nβ€’ NOT preferred post-MI (ISA drugs avoided)",
    mnemonic: "🧠 Pindolol PINS the heart (ISA = partial stimulation)",
  },
  {
    subject: "Pathology",
    q: "Which type of amyloid is deposited in Alzheimer's disease?",
    a: "AΞ² (Amyloid Beta / AA type) – specifically AΞ²42\n\nβ€’ Derived from APP (Amyloid Precursor Protein)\nβ€’ APP gene on chromosome 21 (Trisomy 21 β†’ early AD)\nβ€’ Senile plaques: extracellular AΞ² deposits\nβ€’ Neurofibrillary tangles: intracellular tau protein\nβ€’ APOE4: major genetic risk factor",
    mnemonic: "🧠 Alzheimer's = A-Beta plaques + Tau tangles",
  },
  {
    subject: "Physiology",
    q: "What is the P50 value of Oxygen-Hemoglobin dissociation curve?",
    a: "P50 = 26.6 mmHg (partial pressure O2 at which Hb is 50% saturated)\n\nRight shift (↑P50, ↓O2 affinity) = MORE O2 release:\nβ€’ ↑ CO2, ↑ Temperature, ↑ 2,3-BPG, ↑ H+ (↓pH)\n\nLeft shift (↓P50, ↑O2 affinity) = LESS O2 release:\nβ€’ ↓ CO2, ↓ Temp, ↑ pH, HbF, CO-Hb",
    mnemonic: "🧠 P50=26.6 | Right = Releases O2 | Left = Loves O2",
  },
  {
    subject: "Anatomy",
    q: "What structures pass through the Carpal Tunnel?",
    a: "10 structures (4+4+2):\nβ€’ 4 Flexor Digitorum Superficialis tendons\nβ€’ 4 Flexor Digitorum Profundus tendons\nβ€’ 1 Flexor Pollicis Longus tendon\nβ€’ Median Nerve\n\nNOT in carpal tunnel: Flexor Carpi Radialis, Ulnar nerve/artery",
    mnemonic: "🧠 Carpal tunnel = Median nerve + 9 tendons (4+4+1)",
  },
  {
    subject: "Biochemistry",
    q: "What is the difference between Type I and Type II Diabetes Mellitus?",
    a: "Type I DM:\nβ€’ Autoimmune, destruction of Ξ²-cells\nβ€’ Insulin dependent, onset < 30 yrs\nβ€’ HLA-DR3, DR4 associated\nβ€’ Anti-GAD, Anti-islet cell antibodies\n\nType II DM:\nβ€’ Insulin resistance + secretion defect\nβ€’ Not insulin-dependent initially\nβ€’ Strong genetic + obesity link",
    mnemonic: "🧠 Type I = Immune/Young | Type II = Obese/Old",
  },
  {
    subject: "Microbiology",
    q: "What is the mechanism of action of Penicillin?",
    a: "Inhibits cell wall synthesis by binding to PBPs\n(Penicillin Binding Proteins = transpeptidases)\n\nβ€’ Inhibits cross-linking of peptidoglycan\nβ€’ Bactericidal\nβ€’ Active against growing bacteria\nβ€’ Resistance: Ξ²-lactamase production\nβ€’ Ξ²-lactamase inhibitors: Clavulanate, Sulbactam, Tazobactam",
    mnemonic: "🧠 Penicillin = PBP blocker = No cross-links = Cell lyses",
  },
  {
    subject: "Medicine",
    q: "What is the Virchow's Triad for Thrombosis?",
    a: "1. Stasis of blood flow\n2. Endothelial injury\n3. Hypercoagulability\n\nExamples:\nβ€’ Stasis: Immobilization, AF, varicose veins\nβ€’ Endothelial injury: Atherosclerosis, surgery\nβ€’ Hypercoagulability: Factor V Leiden, Protein C/S deficiency, OCP use",
    mnemonic: "🧠 SEH: Stasis + Endothelial + Hypercoag = Virchow's Triad",
  },
  {
    subject: "OBG",
    q: "What is Bishop Score and its significance?",
    a: "Bishop Score: Cervical assessment for induction\n\nParameters (DECFS):\nβ€’ Dilation (0–3 cm)\nβ€’ Effacement (0–50%)\nβ€’ Consistency (firm/medium/soft)\nβ€’ Fetal station (-3 to +2)\nβ€’ Position (posterior/mid/anterior)\n\nScore β‰₯ 8 = Favorable cervix (induction likely to succeed)",
    mnemonic: "🧠 DECFS = Dilation, Effacement, Consistency, Fetal, Station",
  },
  {
    subject: "PSM",
    q: "What is the Disability Adjusted Life Year (DALY)?",
    a: "DALY = YLL + YLD\n\nβ€’ YLL = Years of Life Lost (premature mortality)\nβ€’ YLD = Years Lived with Disability\nβ€’ 1 DALY = 1 lost year of healthy life\nβ€’ Used by WHO for global burden of disease\nβ€’ India: Ischemic heart disease β†’ highest DALY\nβ€’ DALY helps prioritize health interventions",
    mnemonic: "🧠 DALY = Dead years + Disabled years (Lost health!)",
  },
];

// ─── Helper: Subject Title Slide ───────────────────────────────────────────
function addCoverSlide(pres) {
  const slide = pres.addSlide();

  // Background gradient-like (dark navy)
  slide.addShape(pres.ShapeType.rect, {
    x: 0, y: 0, w: "100%", h: "100%",
    fill: { color: "050E24" },
  });
  // Decorative accent bar
  slide.addShape(pres.ShapeType.rect, {
    x: 0, y: 2.4, w: "100%", h: 0.6,
    fill: { color: "00B4C6" },
  });

  // Title
  slide.addText("NEET PG 2026", {
    x: 0.5, y: 0.5, w: 9, h: 1.2,
    fontSize: 52, bold: true, color: "FFFFFF",
    fontFace: "Calibri", align: "center",
  });
  slide.addText("HIGH-YIELD FLASHCARDS", {
    x: 0.5, y: 1.7, w: 9, h: 0.7,
    fontSize: 24, bold: true, color: "00B4C6",
    fontFace: "Calibri", align: "center", charSpacing: 6,
  });
  // Subtitle
  slide.addText("30 Must-Know Topics | Pharma β€’ Physio β€’ Path β€’ Anatomy β€’ Biochem β€’ Micro β€’ Medicine β€’ Surgery β€’ OBG β€’ PSM", {
    x: 0.5, y: 3.2, w: 9, h: 0.6,
    fontSize: 13, color: "B0BEC5", align: "center", fontFace: "Calibri",
  });
  // Footer
  slide.addText("Study Smart. Score High. 🎯", {
    x: 0.5, y: 4.5, w: 9, h: 0.5,
    fontSize: 16, color: "F5A623", align: "center", bold: true, fontFace: "Calibri",
  });
}

// ─── Helper: Add Flashcard (Q side) ────────────────────────────────────────
function addQuestionSlide(pres, card, index) {
  const sc = subjectColors[card.subject] || { bg: "1A237E", accent: "00BCD4", tag: "F5A623" };
  const slide = pres.addSlide();

  // Background
  slide.addShape(pres.ShapeType.rect, {
    x: 0, y: 0, w: "100%", h: "100%",
    fill: { color: sc.bg },
  });
  // Top accent bar
  slide.addShape(pres.ShapeType.rect, {
    x: 0, y: 0, w: "100%", h: 0.08,
    fill: { color: sc.tag },
  });
  // Card number badge
  slide.addShape(pres.ShapeType.ellipse, {
    x: 0.3, y: 0.2, w: 0.7, h: 0.7,
    fill: { color: sc.tag },
    line: { color: sc.tag, width: 0 },
  });
  slide.addText(`${index}`, {
    x: 0.3, y: 0.2, w: 0.7, h: 0.7,
    fontSize: 16, bold: true, color: "000000",
    align: "center", valign: "middle", margin: 0,
  });

  // Subject tag
  slide.addShape(pres.ShapeType.roundRect, {
    x: 1.2, y: 0.28, w: 2.2, h: 0.5,
    fill: { color: sc.accent },
    line: { color: sc.accent, width: 0 },
    rectRadius: 0.1,
  });
  slide.addText(card.subject.toUpperCase(), {
    x: 1.2, y: 0.28, w: 2.2, h: 0.5,
    fontSize: 12, bold: true, color: "000000",
    align: "center", valign: "middle", margin: 0,
  });

  // "QUESTION" label
  slide.addText("❓ QUESTION", {
    x: 7.5, y: 0.28, w: 2.2, h: 0.5,
    fontSize: 12, bold: true, color: sc.tag,
    align: "right", valign: "middle",
  });

  // Divider
  slide.addShape(pres.ShapeType.line, {
    x: 0.4, y: 1.05, w: 9.2, h: 0,
    line: { color: sc.accent, width: 1.5, dashType: "dash" },
  });

  // Question text
  slide.addText(card.q, {
    x: 0.4, y: 1.2, w: 9.2, h: 3.2,
    fontSize: 26, bold: true, color: "FFFFFF",
    fontFace: "Calibri", align: "center", valign: "middle",
    wrap: true,
  });

  // Footer hint
  slide.addText("β†’ Flip for Answer", {
    x: 0, y: 4.9, w: "100%", h: 0.4,
    fontSize: 12, color: sc.accent, italic: true,
    align: "center", valign: "middle",
  });
}

// ─── Helper: Add Flashcard (A side) ────────────────────────────────────────
function addAnswerSlide(pres, card) {
  const sc = subjectColors[card.subject] || { bg: "1A237E", accent: "00BCD4", tag: "F5A623" };
  const slide = pres.addSlide();

  // Background (slightly lighter)
  slide.addShape(pres.ShapeType.rect, {
    x: 0, y: 0, w: "100%", h: "100%",
    fill: { color: "111B2E" },
  });
  // Left accent stripe
  slide.addShape(pres.ShapeType.rect, {
    x: 0, y: 0, w: 0.12, h: "100%",
    fill: { color: sc.tag },
  });
  // Top bar
  slide.addShape(pres.ShapeType.rect, {
    x: 0, y: 0, w: "100%", h: 0.08,
    fill: { color: sc.accent },
  });

  // "ANSWER" tag
  slide.addShape(pres.ShapeType.roundRect, {
    x: 0.3, y: 0.15, w: 2.0, h: 0.5,
    fill: { color: sc.tag },
    line: { color: sc.tag, width: 0 },
    rectRadius: 0.1,
  });
  slide.addText("βœ… ANSWER", {
    x: 0.3, y: 0.15, w: 2.0, h: 0.5,
    fontSize: 13, bold: true, color: "000000",
    align: "center", valign: "middle", margin: 0,
  });

  // Subject
  slide.addText(card.subject.toUpperCase(), {
    x: 7.5, y: 0.2, w: 2.2, h: 0.4,
    fontSize: 12, color: sc.accent, bold: true,
    align: "right", valign: "middle",
  });

  // Divider
  slide.addShape(pres.ShapeType.line, {
    x: 0.4, y: 0.85, w: 9.2, h: 0,
    line: { color: sc.accent, width: 1 },
  });

  // Answer text
  slide.addText(card.a, {
    x: 0.4, y: 0.95, w: 9.2, h: 3.3,
    fontSize: 16, color: "E8F4F8",
    fontFace: "Calibri", align: "left", valign: "top",
    wrap: true,
  });

  // Mnemonic box
  if (card.mnemonic) {
    slide.addShape(pres.ShapeType.roundRect, {
      x: 0.4, y: 4.4, w: 9.2, h: 0.85,
      fill: { color: sc.bg },
      line: { color: sc.tag, width: 2 },
      rectRadius: 0.15,
    });
    slide.addText(card.mnemonic, {
      x: 0.5, y: 4.4, w: 9.0, h: 0.85,
      fontSize: 14, color: sc.tag, bold: true, italic: true,
      fontFace: "Calibri", align: "left", valign: "middle",
    });
  }
}

// ─── Build Presentation ─────────────────────────────────────────────────────
addCoverSlide(pres);

flashcards.forEach((card, i) => {
  addQuestionSlide(pres, card, i + 1);
  addAnswerSlide(pres, card);
});

// End Slide
const endSlide = pres.addSlide();
endSlide.addShape(pres.ShapeType.rect, {
  x: 0, y: 0, w: "100%", h: "100%",
  fill: { color: "050E24" },
});
endSlide.addShape(pres.ShapeType.rect, {
  x: 0, y: 2.4, w: "100%", h: 0.5,
  fill: { color: "F5A623" },
});
endSlide.addText("All the Best for NEET PG 2026! πŸ†", {
  x: 0.5, y: 0.8, w: 9, h: 1.2,
  fontSize: 36, bold: true, color: "FFFFFF",
  align: "center", valign: "middle", fontFace: "Calibri",
});
endSlide.addText("You've Got This!", {
  x: 0.5, y: 1.9, w: 9, h: 0.6,
  fontSize: 22, color: "00B4C6", align: "center", fontFace: "Calibri",
});
endSlide.addText("Review daily | Practice MCQs | Stay consistent", {
  x: 0.5, y: 3.2, w: 9, h: 0.5,
  fontSize: 15, color: "B0BEC5", align: "center", fontFace: "Calibri",
});

// Write file
pres.writeFile({ fileName: "/home/daytona/workspace/neet-pg-flashcards/NEET_PG_2026_Flashcards.pptx" })
  .then(() => { console.log("SUCCESS: PPTX created!"); process.exit(0); })
  .catch(err => { console.error("ERROR:", err); process.exit(1); });
Running Command

cd /home/daytona/workspace/neet-pg-flashcards && node create_flashcards.js

Running Command

ls -lh /home/daytona/workspace/neet-pg-flashcards/NEET_PG_2026_Flashcards.pptx

Your NEET PG 2026 flashcard deck is ready! 🎯

NEET PG 2026 Flashcards

Presentation Β· PPTX


Here's what's inside (61 slides total):
Structure of each card:
  • Question slide - Bold question on a colored dark background with subject tag and card number
  • Answer slide - Detailed answer with key points + a color-coded mnemonic box at the bottom
Subjects covered (3 cards each):
SubjectTopics Covered
PharmacologyC. diff DOC, Status Epilepticus, Gout (Allopurinol), Beta-blocker ISA
PhysiologyIOP, JG cells & Renin, O2-Hb dissociation curve (P50)
PathologyReed-Sternberg cells, Psammoma bodies, Amyloid in Alzheimer's
AnatomySaturday Night Palsy, Winging of Scapula, Carpal Tunnel contents
BiochemistryPKU enzyme defect, Cholesterol rate-limiting enzyme, Type 1 vs 2 DM
MicrobiologyHepB vaccine schedule, Whooping cough, Penicillin MOA
MedicineHUS triad, Metabolic Syndrome criteria, Virchow's Triad
SurgeryCullen's & Grey Turner's signs, Acute Appendicitis investigation
OBGPPH (most common cause), Ectopic Pregnancy triad, Bishop Score
PSMMMR SDG target, Rabies incubation, DALY formula
Each answer includes clinical pearls, key numbers, and an easy mnemonic - exactly what NEET PG 2026 demands. All the best! πŸ†
This is a shared conversation. Sign in to Orris to start your own chat.