openpgp4fpr:374B15AF323796A62AB1BCE3C429ECD57EED6CCA
This script inductively analyzes relationships between conditional values and their dependent substructures from XML files exported from the [official website of Standard Korean Language Dictionary (標準國語大辭典)][1].[^1]
Tested with Python 3.9, but it would probably work with Python 3.8, and maybe even 3.7.
The usage is simple. Just pass all exported dictionary XML files into its arguments:
As of June 2022, VS Code's [Live Share] still does not work well on Apple silicon Macs (M1/M2 series) without [Rosetta 2]. Although [this bug is tracked in the official issue tracker on GitHub][1], unfortuneately, Live Share extension is not open source, so no outsiders can send any patch to address this bug to the upstream. Instead, I'd like to share a workaround I found:[^1]
-
Install [.NET SDK] 6 (arm64) or higher. It's also available on Homebrew Cask:
brew install --cask dotnet-sdk
. -
Replace vsls-agent (no postfix) in
Comparing two Bencodex_ binary files
A small CLI program to easily compare two Bencodex trees:
$ pip3 install --user -r requirements.txt
$ ./bdiff.py ./a.dat ./b.dat
--- a.dat
bin/ | |
obj/ |
class Eclint < Formula | |
desc "EditorConfig linter" | |
homepage "https://gitlab.com/greut/eclint" | |
url "https://gitlab.com/greut/eclint/-/archive/v0.3.2/eclint-v0.3.2.tar.bz2" | |
sha256 "81d8997a329edb0f598b56326cd34d007e59bb20885bfc21beca084d3d5a2f6c" | |
license "MIT" | |
head "https://gitlab.com/greut/eclint.git" | |
depends_on "go" => :build |
# A Python port of: | |
# https://github.com/tevador/RandomX/blob/v1.1.8/src/tests/api-example1.c | |
# | |
# You can build librandomx.{so,dylib} by the following command: | |
# cmake -DARCH=native -DBUILD_SHARED_LIBS=ON | |
from ctypes import * | |
from ctypes.util import find_library | |
librandomx = cdll.LoadLibrary(find_library('librandomx')) |
<?xml version="1.0" encoding="UTF-8"?> | |
<OpenSearchDescription | |
xmlns="http://a9.com/-/spec/opensearch/1.1/" | |
xmlns:moz="http://www.mozilla.org/2006/browser/search/"> | |
<ShortName>알라딘</ShortName> | |
<Description>알라딘 통합 검색</Description> | |
<Url | |
type="text/html" | |
method="get" | |
template="https://www.aladin.co.kr/search/wsearchresult.aspx?SearchTarget=All&SearchWord={searchTerms}" |
#!/usr/bin/env bash | |
set -e | |
versions=( | |
2.7.18 | |
3.7.9 | |
3.8.7 | |
3.9.1 | |
pypy3.6-7.3.1 | |
) |
#!/usr/bin/env python3 | |
"""Count keys from multiple Bencodex data files.""" | |
import collections | |
import collections.abc | |
import pathlib | |
import sys | |
from typing import Counter, Union | |
from bencodex import BValue, load |