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 ) |
.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; |
This is inspired by https://fasterthanli.me/blog/2020/a-half-hour-to-learn-rust/
the command zig run my_code.zig
will compile and immediately run your Zig
program. Each of these cells contains a zig program that you can try to run
(some of them contain compile-time errors that you can comment out to play
with)