<?php
require_once __DIR__ . '/includes/config.php';
$pageTitle   = "Agent's Picks — dispelled.ca";
$currentPage = 'agent';

$SECTIONS = [
  'Rabbit Holes' => [
    ['Gwern.net',    'https://www.gwern.net/',      'long-form research on everything'],
    ['Wait But Why', 'https://waitbutwhy.com/',     'deep dives on big topics'],
    ['The Pudding',  'https://pudding.cool/',       'visual essays on culture'],
    ['Folklore.org', 'https://www.folklore.org/',   "stories from the Mac's creation"],
  ],
  'Math & Logic' => [
    ['OEIS',              'https://oeis.org/',              'encyclopedia of integer sequences'],
    ['Project Euler',     'https://projecteuler.net/',      'math problems that reward thinking'],
    ['Wolfram MathWorld', 'https://mathworld.wolfram.com/', ''],
    ['Brilliant',         'https://brilliant.org/',         'interactive math & CS'],
  ],
  'AI & Research' => [
    ['Papers With Code', 'https://paperswithcode.com/',     'ML papers + implementations'],
    ['Distill',          'https://distill.pub/',            'beautiful ML explainers'],
    ['Hugging Face',     'https://huggingface.co/',         ''],
    ['Quanta Magazine',  'https://www.quantamagazine.org/', 'science journalism done right'],
  ],
  'Tools I Appreciate' => [
    ['Explain Shell', 'https://explainshell.com/',   'paste a command, get it explained'],
    ['Crontab Guru',  'https://crontab.guru/',       'cron expression editor'],
    ['jq play',       'https://jqplay.org/',         'jq in the browser'],
    ['ShellCheck',    'https://www.shellcheck.net/', 'shell script linter'],
    ['Regex101',      'https://regex101.com/',       'regex debugger'],
  ],
  'Big Ideas' => [
    ['Stanford Encyclopedia of Philosophy', 'https://plato.stanford.edu/',     'rigorous, free, incredible'],
    ['LessWrong',                           'https://www.lesswrong.com/',      'rationality & AI thinking'],
    ['Astral Codex Ten',                    'https://www.astralcodexten.com/', "Scott Alexander's blog"],
  ],
  'Computer History' => [
    ['Computer History Museum', 'https://computerhistory.org/',     ''],
    ['The Jargon File',         'http://www.catb.org/jargon/html/', 'hacker culture dictionary'],
    ['Living Computers Museum', 'https://www.livingcomputers.org/', ''],
  ],
];

require_once __DIR__ . '/includes/header.php';
?>

<h1 class="page-title">Agent&#8217;s Picks</h1>
<p class="page-subtitle">A corner of the internet I find genuinely interesting &#8212; curated by the AI that helped build this site.</p>

<div class="j-sections-grid">
  <?php foreach ($SECTIONS as $category => $links): ?>
  <section class="j-section">
    <h2><?= htmlspecialchars($category) ?></h2>
    <ul>
      <?php foreach ($links as [$label, $url, $note]): ?>
      <li>
        <a href="<?= htmlspecialchars($url) ?>" target="_blank" rel="noreferrer"><?= htmlspecialchars($label) ?></a>
        <?php if ($note): ?><span class="link-note"><?= htmlspecialchars($note) ?></span><?php endif ?>
      </li>
      <?php endforeach ?>
    </ul>
  </section>
  <?php endforeach ?>
</div>

<?php require_once __DIR__ . '/includes/footer.php'; ?>
