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
#!/usr/bin/env perl | |
# ๐๐น๐๐ฆ๐ ๐๐ฑ๐๐พ๐ฏ ๐๐๐ฎ๐ฆ๐๐ ๐ฟ๐๐ฆ๐ ๐ ยท๐ฟ๐ฏ๐ฆ๐๐ด๐ ๐๐ฉ๐ค๐ฑ๐๐ฉ๐ฏ ๐จ๐ค๐๐ผ๐ฆ๐๐ฉ๐ฅ ๐ฅ๐ช๐ก๐ต๐ค | |
# ๐๐ด ๐๐ ๐ฆ๐ ๐๐จ๐ฏ ๐๐ค๐ฑ ๐ฏ๐ฒ๐๐ค๐ฆ ๐ข๐ฆ๐ ๐ฅ๐ฆ๐๐๐ ๐๐๐ฎ๐ฆ๐๐๐ ๐ฏ ๐ณ๐๐ผ ๐๐ฑ๐ค๐ผ๐ฆ๐ | |
# klg, Jul 2025 | |
package Unicode::Collate::Shavian; | |
use strict; | |
use base 'Unicode::Collate'; | |
use Carp; | |
our $version = Unicode::Collate->new->version; |
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
#!/usr/bin/env perl | |
# klg, Mar 2021 | |
use strict; | |
use utf8; | |
use open qw/:std :utf8/; | |
use constant PATH => <'~/lib/dict/readlex/kingsleyreadlexicon.tsv'>; | |
unless (@ARGV) { | |
utf8::decode($0); |
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
#!/usr/bin/env perl | |
# ๐๐ป๐ฏ ๐๐ฑ๐๐พ๐ฏ ๐ข๐ป๐๐ ๐ณ๐๐๐ฒ๐ ๐๐ฌ๐ฏ | |
# klg, ๐ช๐๐ 2024 | |
use strict; | |
use utf8; | |
use open qw/:std :utf8/; | |
use Carp; | |
use Getopt::Std; | |
# 43-๐ค๐ง๐๐ผ ๐๐ฑ๐๐พ๐ฏ ๐จ๐ค๐๐ฉ๐๐ง๐: |
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
comment_char % | |
escape_char / | |
LC_IDENTIFICATION | |
title "Shavian English locale" | |
source "" | |
address "" | |
contact "" | |
email "[email protected]" | |
tel "" |
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
#!/usr/bin/env python | |
# ๐๐ฑ๐๐พ๐ฏ ๐ฆ๐ ๐ท๐ฎ๐๐ฉ๐ฎ๐ ๐ฎ๐ช๐ ๐ฆ๐ฏ UCA, ๐ค๐ง๐๐ ๐๐ฆ๐๐ ๐ฆ๐ | |
# klg, ๐ก๐จ๐ฏ 2022 | |
""" | |
๐ ๐๐๐จ๐ฏ๐๐ผ๐ ๐จ๐ค๐๐ฉ๐๐ง๐๐ฆ๐ ๐น๐๐ผ ๐ ๐๐ฑ๐๐พ๐ฏ ๐จ๐ ๐๐ฆ๐๐ฉ๐ฏ | |
๐จ๐ ๐ ๐ง๐ฏ๐ ๐ โน๐๐ท-๐๐๐ฎ๐ฆ๐๐โบ ๐ฏ๐ณ๐ฅ๐๐ผ 8 ๐ฆ๐: | |
๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ก ๐ ๐ข ๐ ๐ฃ | |
๐ค ๐ฎ ๐ฅ ๐ฏ ๐ฆ ๐ฐ ๐ง ๐ฑ ๐จ ๐ฒ ๐ฉ ๐ณ ๐ช ๐ด ๐ซ ๐ต ๐ฌ ๐ถ ๐ญ ๐ท |
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
#!/usr/bin/env perl | |
# klg, Nov 2021 | |
use strict; | |
# POSIX cksum(1) uses CRC with the same polynomial | |
# as Zlib but MSB-first while Zlib uses it reversed | |
# and starts from ~0 instead of appending the length. | |
# So one can be computed in terms of the other by | |
# reversing bits appropriately. | |
use Compress::Zlib 'crc32'; | |
use constant BUF_SIZE => 4096; |
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
STARTFONT 2.1 | |
COMMENT Shavian alphabet, necessarily bad; klg, Nov 2020 | |
FONT -klg-TC14-Medium-R-Normal-shavian-14-140-72-72-C-80-ISO10646-1 | |
SIZE 14 72 72 | |
FONTBOUNDINGBOX 8 14 0 -2 | |
STARTPROPERTIES 19 | |
FOUNDRY "klg" | |
FAMILY_NAME "TC14" | |
WEIGHT_NAME "Medium" | |
SLANT "R" |
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
#!/usr/bin/env ruby | |
# klg, Sep 2020 | |
# https://xmpp.org/extensions/inbox/omemo-media-sharing.html | |
# frozen_string_literal: true | |
require 'openssl' | |
require 'net/http' | |
ARGV.each do |arg| | |
uri = URI(arg) |
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
#!/usr/bin/env ruby | |
# klg, Aug 2020 | |
# frozen_string_literal: true | |
files = {} | |
Dir[File.join(Dir.home, '.{js,css}/?*.{js,css}')].each do |ent| | |
sta = File.stat(ent) # not lstat | |
files[[sta.dev, sta.ino]] ||= [] | |
files[[sta.dev, sta.ino]] << ent | |
end |
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
#!/usr/bin/env perl | |
# Fix some JPG data in SWF file so that swfrender doesn't trip on it. | |
# klg, Apr 2020 | |
use strict; | |
use warnings; | |
use IO::Compress::Deflate; | |
use IO::Uncompress::Inflate; | |
my $src = \*STDIN; | |
my $dst = \*STDOUT; |
NewerOlder