Model by Squilliams.
V=1770, E=6600, F=4250 (chi = -580, genus 291).
| // Run with | |
| // npm install -i leafstone | |
| // leafstone WordLadder.jsx | |
| // @requires-asset words.json | |
| import { useCallback, useEffect, useMemo, useRef, useState } from "react"; | |
| import { Play, Shuffle, RotateCcw, Gauge, Infinity, Square } from "lucide-react"; | |
| import wordsAll from "../assets/words.json"; |
| (((accru|spous)i|(adorn|align|amend|assay|b(eep|ray)|bawl|belay|bilk|bl(eat|eep|oop|urt)|braid|bruit|c(aulk|h(arm|aw|eep)|heat|hurn|oil)|caper|clack|clamp|cli(mb|nk)|croon|d(ec(ay|oy)|unk)|endow|flay|foray|frown|gait|gasp|gawp|glean|gr(asp|eet)|groom|hail|heist|hint|hoard|j(eer|ink)|kneel|l(isp|o(af|ot)|urk)|maim|maul|meld|moil|mump|oust|pl(ait|ead)|pr(ay|ey|ink)|prowl|quilt|r(aid|ant|eam|oam|olf)|scold|sculk|shark|shear|shirk|shout|skink|skirt|skulk|snook|snort|sorn|sp(ank|ew|urn)|spell|spiel|spo(ol|ut)|spray|stain|stint|stomp|stoo[kp]|str(ay|oy)|swarm|teem|tempt|thump|tout|trail|tweet|usurp|w(ank|oof)|waken|wreak|y(arn|awn|elp)|yearn|yowl)i|(batc|belc|ditc|fetc|filc|lurc|mooc|notc|shus|slas|wenc)hi|(chair|stunt)i|(clasp|learn)i|(codd|dabb)i|(embow|scalp)i|(hoax|nosh)i|(moan|scorn|thank)i|(perus|refut)i|(shew|strew)i|(slack|slick)i|(striv|thriv)i|abyi|admiri|adori|advisi|aidi|amassi|ampi|antei|argui|arisi|arousi|autoi|awardi|awi|bachi|baiti|bangi|banni|bargi|bathi|bayi|berimi|blanki|b | |
| lari|blendi|blessi|blit |
| (* code for https://x.com/matthen2/status/1828043142592934302 *) | |
| n2 = 1.4; | |
| f2 = 0.6; | |
| dx = 0.05; | |
| bgcolor = RGBColor[0., 0.03, 0.06]; | |
| wave[x_] := Sin[2 Pi x]; | |
| Manipulate[ | |
| Graphics[{ | |
| GeometricTransformation[{ |
| characters = {"一", "二", "三", "四", "五", "六", "七", "八", "九", "十", "十一", | |
| "十二", "十三", "十四", "十五", "十六", "十七", "十八", "十九", "二十", "二十一", "二十二", | |
| "二十三", "二十四", "二十五", "二十六", "二十七", "二十八", "二十九", "三十", "三十一", | |
| "三十二", "三十三", "三十四", "三十五", "三十六", "三十七", "三十八", "三十九", "四十", | |
| "四十一", "四十二", "四十三", "四十四", "四十五", "四十六", "四十七", "四十八", "四十九", | |
| "五十", "五十一", "五十二", "五十三", "五十四", "五十五", "五十六", "五十七", "五十八", | |
| "五十九", "六十", "六十一", "六十二", "六十三", "六十四", "六十五", "六十六", "六十七", | |
| "六十八", "六十九", "七十", "七十一", "七十二", "七十三", "七十四", "七十五", "七十六", | |
| "七十七", "七十八", "七十九", "八十", "八十一", "八十二", "八十三", "八十四", "八十五", | |
| "八十六", "八十七", "八十八", "八十九", "九十", "九十一", "九十二", "九十三", "九十四", |
| """Hello world, with a genetic algorithm. | |
| https://twitter.com/matthen2/status/1769368467067621791 | |
| """ | |
| import random | |
| import time | |
| from dataclasses import dataclass | |
| from itertools import chain | |
| from typing import Iterable, List |
| smoothstep[t_, t0_, t1_] := | |
| With[{tt = (t - t0)/(t1 - t0)}, | |
| If[tt < 0, 0, If[tt > 1, 1, 6 tt^5 - 15 tt^4 + 10 tt^3]]]; | |
| a = 0.918; | |
| p = ShearingMatrix[a, {1, 0}, {0, 1}].{Cos[th], Sin[th]}; \[Theta] = | |
| ArcTan @@ Reverse[(p /. NMaximize[Norm[p], th][[2]])]; | |
| yscale = (RotationMatrix[\[Theta]].(p /. {th -> \[Theta]}))[[2]]; | |
| xscale = (RotationMatrix[\[Theta]].(p /. {th -> \[Theta] - | |
| Pi/2}))[[1]]; | |
| \[Theta]2 = ArcTan @@ ((ScalingTransform[{(1/xscale) , (1/yscale) }]. |
| python_binary( | |
| name = "test_main", | |
| main = "test_main.py", | |
| deps = [":tensorflow"], | |
| ) | |
| """Third party python dependencies, installed using pip. | |
| See README.md for help in constructing these rules. |
| AskReddit | |
| politics | |
| The_Donald | |
| nba | |
| worldnews | |
| news | |
| nfl | |
| leagueoflegends | |
| soccer | |
| funny |