summaryrefslogtreecommitdiff
path: root/html/index.php
blob: 5fff40802fb2c222c3408ef6ccd9e24b61208121 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
<?php
$p = isset($_GET['p']) && $_GET['p'] === '1' ? 1 : 0;

$commit = trim(@file_get_contents('/usr/share/nginx/commit') ?: '');

$pronounCount = 0;
function pronoun(...$forms) {
    global $p, $pronounCount;
    $id   = 'p' . $pronounCount++;
    $next = ($p + 1) % count($forms);
    return sprintf(
        '<a class="pro" id="%s" href="?p=%d#%s">%s</a>',
        $id, $next, $id, htmlspecialchars($forms[$p], ENT_QUOTES)
    );
}

$words = [
    'article'   => ['the', 'a', 'every', 'some', 'one', 'that'],
    'adjective' => ['cute', 'waterproof', 'fluffy', 'yellow-eyed', 'sleepy', 'enormous', 'polite',
                    'damp', 'well-loved', 'smug', 'round', 'salty', 'windswept', 'tiny'],
    'species'   => ['fairy', 'rockhopper', 'adelie', 'gentoo', 'emperor', 'chinstrap', 'king',
                    'macaroni', 'little blue'],
    'subject'   => ['penguin', 'chick', 'colony', 'creche', 'huddle', 'raft', 'Pen Pen',
                    'Koupenchan', 'flipper', 'beak', 'egg', 'nest'],
    'adverb'    => ['quietly', 'eagerly', 'rarely', 'sideways', 'smugly', 'almost', 'solemnly',
                    'briskly', 'suspiciously', 'twice'],
    'verb'      => ['waddles', 'toboggans', 'steals', 'polishes', 'guards', 'misplaces', 'pecks at',
                    'preens', 'dives for', 'cuddles', 'counts', 'hoards', 'trades'],
    'object'    => ['a pebble', 'the nest', 'three krill', 'a shiny fish', 'its egg', 'the whole colony',
                    'a stray feather', 'a spare flipper', 'the last herring', "someone's chick",
                    'a very good rock', 'the ice shelf'],
    'ending'    => ['after the endless summer', 'on the ice shelf', 'without warning', 'in the huddle',
                    'for no reason', 'under a glacier', 'beneath the waves',
                    'at the rookery', 'during the blizzard', 'again'],
    'end'       => ['Squawk.', 'Noot?', 'Gak!', 'Shuffle.', 'Waddle.'],
];

$patterns = [
    ['article', 'adjective', 'species', 'subject', 'adverb', 'verb', 'object'],
    ['article', 'species', 'subject', 'verb', 'object', 'ending'],
    ['article', 'adjective', 'subject', 'verb', 'object', 'ending'],
    ['article', 'subject', 'adverb', 'verb', 'object'],
    ['article', 'adjective', 'subject', 'adverb', 'verb', 'object', 'ending'],
];

$rand = fn(array $list) => $list[array_rand($list)];

$gen = function () use ($words, $patterns, $rand) {
    $text = implode(' ', array_map(fn($cat) => $rand($words[$cat]), $rand($patterns)));
    $out  = ucfirst($text) . '.';
    return mt_rand(0, 3) === 0 ? $out . ' ' . $rand($words['end']) : $out;
};

$n = 5 + mt_rand(0, 5);
$penguin = implode(' ', array_map($gen, range(1, $n)));
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" href="https://adelie.liz.coffee/img/favicon.ico" />
<title>liz.coffee</title>
<style>
    :root {
        --bg: black;
        --fg: white;
        --a:  #c4d0c8;
        --h:  #7d978c;
        /* held back so a bright flake drifting behind white text
           never fights it for contrast */
        --snow: 0.5;
    }
    * {
        cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 24" width="32" height="24"><path d="M1 3h1v1h1v1h1v1h1v1h1v1h1v1h1v1h1v1h1v1h1v1h1v2H9v1h1v2h1v2h-1v1H8v-1H7v-2H6v-2H5v1H4v1H3v1H1" fill="%23ff69b4" stroke="%23b19cd9" stroke-width="0.5"/><path d="M2 5h1v1h1v1h1v1h1v1h1v1h1v1h1v1h1v1h1v1h1v1H8v2h1v2h1v2H8v-2H7v-2H6v-1H5v1H4v1H3v1H2" fill="white" stroke="%23ff69b4" stroke-width="0.5"/></svg>')
            0 0, auto !important;
    }

    body {
        max-width:        800px;
        background-color: var(--bg);
        color:            var(--fg);
    }

    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        color:         var(--h);
        margin-bottom: 20px;
    }

    a {
        color:           var(--a);
        text-decoration: underline;
    }
    .pro {
        color:           inherit;
        text-decoration: underline dotted;
    }
    .pro:target {
        scroll-margin-top: 40vh;
    }
    #snow {
        display:  block;
        position: fixed;
        inset:    0;
        width:    100%;
        height:   100%;
        /* behind the text but still above the propagated body background */
        z-index:  -1;
        /* never eat a click; window listeners still get the cursor */
        pointer-events: none;
        opacity: var(--snow);
    }
</style>
</head>
<body>
<canvas id="snow" aria-hidden="true"></canvas>
<main>
    <h1><?= pronoun('Elizabeth', 'Alexander') ?> Hunt (<?= pronoun('she', 'he') ?>) (ca 2003)</h1>
    <div>
      [me at <a href="https://en.wikipedia.org/wiki/Logarithmic_integral_function" target="_blank">li(z)</a> dot coffee (<a class="tt" href="mailto:me@liz.coffee">mailto</a>)] ·
      [<a href="https://code.liz.coffee">git hub</a>] ·
      [<a href="https://linkedin.com/in/emprespresso">linkedin</a>] ·
      [<a href="https://instagram.com/emprespresso">instagram</a>] ·
      [<a href="https://x.com/emprespresso">twitter</a>]
    </div>

    <marquee>If you <a href="https://web.archive.org/web/20260720071542/https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/marquee">take away <?= pronoun('her', 'his') ?> marquee tag</a> then <?= pronoun('she', 'he') ?> will find you and <?= pronoun('she', 'he') ?> will blast you to smithereens.</marquee>
    <hr />

    <div><p><?= pronoun('She', 'He') ?> is not particularly exceptional at anything, but can functionally do a fair bit of stuff, of which extremely variable ability perhaps is the only exceptional thing about <?= pronoun('her', 'him') ?>.</p></div>
    <div style="margin-right: 10px; max-width: 200px; float:left; text-align: center"><img src="assets/coffee-koupen.jpg" width="100%"><br><i>Koupenchan becomes the color of what it drinks</i></div>

    <div><p><?= pronoun('She', 'He') ?> is a programmer at a Big Ol' Tech™ company in Seattle (unfortunately, probably the one you're thinking of). And will continue to refer to <?= pronoun('her', 'him') ?>self in the third person for the remainder of this World Wide Web document, which you find yourself laying your eyes on. And in so doing, probably don't yet understand the context of the next words you are about to read. Except, that they are there. They take up space. And reading through them consumes YOUR oh-so-precious time - of which sup ∈ ℝ<sup>+</sup>, need <?= pronoun('she', 'he') ?> remind you.</p><div>
    <div><p id="genpenguin"><?= htmlspecialchars($penguin) ?></p></div>

    <p><?= pronoun('She', 'He') ?> enjoys recreational programming and searching the space of math and CS outside of work; some of <?= pronoun('her', 'his') ?> current interests are in PLs and type theory (trying to figure out what exactly, but reads about continuations, gradual typing, effects, STLC, etc), game programming (&lt;3 pico8) but can never <a href="https://code.liz.coffee/dyl8.git">actually</a> <a href="https://code.liz.coffee/the-abstraction-engine-ts.git/">finish</a> <a href="https://code.liz.coffee/jumpstorm.git">one</a>, homelab stuff. <?= pronoun('She', 'He') ?> was an advocate of LISPy stuff while president of the <a href="https://linux.usu.edu">USU Free Software and Linux Club</a>, <?= pronoun('she', 'he') ?> still can't shake off Emacs and probably should augment <?= pronoun('her', 'his') ?> <a href="assets/emacs.png">hand accordingly</a>.</p>

    <p>When not doing computer stuff, <?= pronoun('she', 'he') ?> runs, bikes, watches anime, rides trains, reads, or bakes bread. <?= pronoun('She', 'He') ?> may be heard practicing violin or speedcubing. Penguins are absolutely fascinating to <?= pronoun('her', 'him') ?>, and <?= pronoun('she', 'he') ?> collects books on said species as well as plenty of stuffed animals, and visits them when possible. Maybe <?= pronoun('she', 'he') ?> will one day <span style="display: none">(soon?) </span>reincarnate to be one.</p>

    <p>Other notable things about <?= pronoun('her', 'him') ?> are that <?= pronoun('she', 'he') ?> is vegetarian (except for when it comes to billionaires), bicycle, poly, terrible at <?= pronoun('her', 'his') ?> job, and a bit fucked up.</p>

    <p>Gus! Bread!</p>
    <div><img src="assets/gus.jpeg" width="300"> <img src="assets/bread.jpeg" width="300"></div>
    <hr>
    <div>
        <p>I jam to this so hard so I'm putting it on my website:</p>
        <audio controls src="assets/so-much-drama-in-the-phd-monzy.mp3"></audio>
        <p><i><a href="https://www.youtube.com/embed/JimUMZTiAjo" target="_blank">So Much Drama In The PhD - Monzy</a></i></p>
    </div>
    <div style="display: flex; align-items: center; justify-content: center;"><img width="100" src="assets/penguin.gif"><a href="https://liz.coffee"><img src="https://adelie.liz.coffee/img/blinkies/liz--coffee.gif" width="150" height="20"></a></div>
    <div>
<?php if ($commit !== ''): ?>
        commit <a href="https://code.liz.coffee/lizdotcoffee.git/commit/?id=<?= htmlspecialchars($commit, ENT_QUOTES) ?>"><?= htmlspecialchars(substr($commit, 0, 8), ENT_QUOTES) ?></a>
<?php endif; ?>
        built with <a href="https://code.liz.coffee/ci.git/tree/">lizCI</a>
    </div>
</main>
<script src="assets/oneko.js"></script>
<script src="assets/snow.js"></script>
</body>
</html>