Merge branch 'master' of https://github.com/nealey/nealey.github.io
This commit is contained in:
commit
6408dc836d
|
@ -32,6 +32,7 @@
|
|||
<nav class="left">
|
||||
<ul>
|
||||
<li><a href="{{ '/tartans/' | relative_url }}" title="AKA Plaids">Tartans</a></li>
|
||||
<li><a href="{{ '/poems/' | relative_url }}" title="I won't quit my day job">Poems</a></li>
|
||||
<li><a href="{{ '/papers/' | relative_url }}" title="Various writings">Papers</a></li>
|
||||
<li><a href="{{ '/toys/' | relative_url }}" title="Dumb apps">Toys</a></li>
|
||||
</ul>
|
||||
|
|
2
index.md
2
index.md
|
@ -14,4 +14,4 @@ I help figure out what they did.
|
|||
|
||||
I also teach people about programming and math.
|
||||
You can find more about the teaching at
|
||||
<https://dirtbags.github.io/>.
|
||||
<https://dirtbags.net/>.
|
||||
|
|
|
@ -16,3 +16,4 @@ I guess I'd still have my day job.
|
|||
* [The Poopy Song](poopy.html)
|
||||
* [Sap](sap.html)
|
||||
* [Snark Hair](snark.html)
|
||||
* [🐘 🐢](🐘🐢.html), a rhyming poem in emoji
|
||||
|
|
|
@ -0,0 +1,36 @@
|
|||
---
|
||||
title: 🐘 🐢
|
||||
---
|
||||
|
||||
🐘 🐢
|
||||
🐘 🦊
|
||||
🐘 🐢
|
||||
🐘 🐂
|
||||
|
||||
🐘 🐢
|
||||
🦄 🐁
|
||||
🐘 🦄 🦄 🏠
|
||||
|
||||
🐘 🦄 🏀 🐸
|
||||
🦄 🐘 🎷 🐕
|
||||
|
||||
🎷 🐕 🐢 🦄 🥚
|
||||
🎻
|
||||
🧸
|
||||
🪛
|
||||
🦵
|
||||
|
||||
----
|
||||
|
||||
It's a really difficult thing to search for,
|
||||
but as far as I can tell,
|
||||
this is the first ever rhyming emoji poem.
|
||||
|
||||
I would of course love to be proven wrong about this,
|
||||
so if you find a prior example,
|
||||
please let me know about it,
|
||||
and I'll link to it or reference it here!
|
||||
|
||||
If this is indeed the first,
|
||||
then [this follow-up post](https://forums.somethingawful.com/showthread.php?threadid=3960167#post512735911)
|
||||
would be the first emoji limerick.
|
|
@ -11,3 +11,4 @@ Maybe you'll just wonder why I spend so much time on this garbage.
|
|||
* If you need to write someone a letter but really don't want to, try my
|
||||
[social letter generator](letter.html)
|
||||
* [Crunt](crunt.html)
|
||||
* [Serpeński Gasket on Tektronix Terminal](serpenski.html) which amazed 4 whole people at my high school in 1991.
|
||||
|
|
|
@ -0,0 +1,75 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<title>Tektronix Terminal</title>
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com">
|
||||
<link href="https://fonts.googleapis.com/css2?family=VT323&display=swap" rel="stylesheet">
|
||||
<style>
|
||||
html,
|
||||
body {
|
||||
background: black;
|
||||
color: white;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
#credit {
|
||||
position: fixed;
|
||||
top: 20px;
|
||||
left: 20px;
|
||||
color: goldenrod;
|
||||
font-family: VT323, monospace;
|
||||
font-size: 22px;
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
lastPoint = [0, 0]
|
||||
points = [[0, 0], [0, 0], [0, 0]]
|
||||
interval = null
|
||||
|
||||
function choose(arr) {
|
||||
return arr[Math.floor(Math.random() * arr.length)]
|
||||
}
|
||||
|
||||
function midpoint(a, b) {
|
||||
return [(a[0] + b[0]) / 2, (a[1] + b[1]) / 2]
|
||||
}
|
||||
|
||||
function drawPoint() {
|
||||
lastPoint = midpoint(choose(points), lastPoint)
|
||||
ctx.fillRect(lastPoint[0], lastPoint[1], 2, 2)
|
||||
}
|
||||
|
||||
function go() {
|
||||
canvas = document.querySelector("canvas")
|
||||
ctx = canvas.getContext("2d")
|
||||
canvas.width = innerWidth
|
||||
canvas.height = innerHeight
|
||||
ctx.fillStyle = "goldenrod"
|
||||
|
||||
lastPoint = [
|
||||
Math.random() * canvas.width,
|
||||
Math.random() * canvas.height,
|
||||
]
|
||||
points = [
|
||||
[canvas.width / 2, 0],
|
||||
[canvas.width, canvas.height],
|
||||
[0, canvas.height],
|
||||
]
|
||||
if (!interval) {
|
||||
interval = setInterval(drawPoint, 40)
|
||||
}
|
||||
}
|
||||
addEventListener("load", go)
|
||||
addEventListener("resize", go)
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<canvas></canvas>
|
||||
<div id="credit">The Serpenski Gasket<br>1991 by Neale Pickett</div>
|
||||
</body>
|
||||
|
||||
</html>
|
Loading…
Reference in New Issue