⚠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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>> 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: |
Total number of IPv4 addresses: 100,750,168. That’s the equivalent of just over six /8’s Also see this blog: https://toonk.io/aws-and-their-billions-in-ipv4-addresses/
just for fun, let's put a value number on that
Total value at, $20 per IP: => $2,015,003,360
Total value at, $25 per IP: => $2,518,754,200
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- 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, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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 |
NewerOlder