How to use:
./wordle.sh
Or try the unlimit mode:
| /** | |
| * 8x8 monochrome bitmap fonts for rendering | |
| * Author: Daniel Hepper <[email protected]> | |
| * | |
| * License: Public Domain | |
| * | |
| * Based on: | |
| * // Summary: font8x8.h | |
| * // 8x8 monochrome bitmap fonts for rendering | |
| * // |
| ;; minimal version of my Emacs setup which approximates the effective points per inch on your screen | |
| ;; and then selects your default font pts based on that | |
| ;; Also works on wayland / WSLg because it parses out physical dims from weston.log (necessary in 2023-01) | |
| ;; LIMITATION: Will probably not work on multi-monitor setups. Exercise for the reader! | |
| ;; BSD 3-clause copyright Charl P. Botha <[email protected]> | |
| (defun get-mon-attr (which) | |
| (cdr (assoc which (car (display-monitor-attributes-list))))) | |
| (defun get-monitor-width-mm () |
| ( grep.tal ) | |
| ( ) | |
| ( by d_m ) | |
| ( print a character to STDOUT ) | |
| %emit { #18 DEO } | |
| ( the first argument to grep is the regex ) | |
| ( arguments are passed on STDIN, so we just ) | |
| ( assume the first "line" is the argument ) |
| #include <stdio.h> | |
| #include <string.h> | |
| #include <assert.h> | |
| FILE *in; long M[1<<24]={0}, *D, *R, H=0x130000, IP=0, T; | |
| long getu() { long t, h = getc(in); if (h < 0xC0) return h; | |
| t = ((h&0x1F) << 6) | (getc(in) & 0x3F); if (h < 0xE0) return t; | |
| t = ( t << 6) | (getc(in) & 0x3F); if (h < 0xF0) return t; | |
| t = ( t << 6) | (getc(in) & 0x3F); return t & 0x1FFFFF; } | |
| void putu(long c) { if (c < 0x80) { putchar(c); return; } | |
| if (c < 0x7FF) { putchar(0xC0|(c>>6)); } else { |
| .PHONY:test | |
| test: | |
| rm -rf ./my-profile; mkdir ./my-profile && echo "user_pref('devtools.console.stdout.content', true);user_pref('dom.allow_scripts_to_close_windows', true);user_pref('datareporting.policy.firstRunURL', '');" > ./my-profile/user.js && firefox --headless -profile ./my-profile -no-remote `pwd`/index.html | sed -n "/console.log: /p" | sed -e 's/console.log: "//' -e 's/"$$//' | ./tapview |
| (def ■ '■) | |
| (def ▲ '▲) | |
| (def ● '●) | |
| (first [● ■ ▲]) ; ● | |
| (second [● ■ ▲]) ; ■ | |
| (nth [● ■ ▲] 2) ; ▲ | |
| (rest [● ■ ▲]) ; (■ ▲) | |
| (last [● ■ ▲]) ; ▲ | |
| (butlast [● ■ ▲]) ; (● ■) |
| // hey, we've all got a coding interview to crack, right? | |
| #import <Foundation/Foundation.h> | |
| @interface FZBZSparseArray : NSArray | |
| - initWithCount:(NSUInteger)count placeholder:placeholder overrides:overrides; | |
| @end | |
| @interface FZBZWrappedArray : NSArray | |
| - initWrappingArray:underlyingArray; |