⚠This gist will remain available for posterity, but be aware that Wordle no longer uses these dictionaries.⚠
Wordle is a web browser game that you can play at this link. You get 6 chances to guess a single 5 letter word and there is only 1 word per day.
>> g++ -std=c++20 -Ofast benchmark_prime_sieve.cpp && ./a.out | |
N = 30000000: | |
norm: bool: 106 ms | |
norm: char: 235 ms | |
norm: bool is 2.217 times FASTER | |
seg: bool: 147 ms | |
seg: char: 38 ms | |
seg: bool is 3.868 times SLOWER | |
N = 60000000: |
import collections | |
import numpy as np | |
import scipy.sparse | |
import scipy.sparse.linalg | |
import sys | |
import imageio | |
import io | |
import base64 | |
class MazeJudge: |
On an Debian/Ubuntu-based system, to install texlive-full
without docs and language packs, simply do this:
sudo apt install `sudo apt --assume-no install texlive-full | \
awk '/The following additional packages will be installed/{f=1;next} /Suggested packages/{f=0} f' | \
tr ' ' '\n' | grep -vP 'doc$' | grep -vP 'texlive-lang' | grep -vP 'latex-cjk' | tr '\n' ' '`
After this, if you wish to install the language packs, selectively install them. E.g.:
-- Just add this to the end of the control.lua file in the save file and then replay the file | |
-- This sequence is adjusted for https://www.speedrun.com/Factorio/run/mr87xlgy | |
script.on_nth_tick(300, function(event) | |
if event.tick < 90000 then | |
game.take_screenshot{ | |
surface = game.surfaces[1], | |
position = {-88,-9}, | |
resolution = {1920,1080}, | |
zoom = 0.2, |
$ curl --help | |
Usage: curl [options...] <url> | |
--abstract-unix-socket <path> Connect via abstract Unix domain socket | |
--alt-svc <file name> Enable alt-svc with this cache file | |
--anyauth Pick any authentication method | |
-a, --append Append to target file when uploading | |
--basic Use HTTP Basic Authentication | |
--cacert <file> CA certificate to verify peer against | |
--capath <dir> CA directory to verify peer against | |
-E, --cert <certificate[:password]> Client certificate file and password |
this has been rewritten yet again as most workarounds aren't required anymore since wine 3+
example video of the final result: https://www.youtube.com/watch?v=zkqzQoeOGfU
with touchscreen: https://www.youtube.com/watch?v=GcIrlorWmaQ
performance is indistinguishable from windows. there might be a very slight ~25ms sound latency which is easily compensated with +25 local offset
tested on