- 到 http://ccamc.co/fonts_tangut.php 下載夏漢字典序號輸入法壓縮包,將其中的
tangut_xhzd.dict.yaml複製到Rime 用戶文件夾。 - 到 https://github.com/Hulenkius/rime_tangutcjkk 下載倉頡西夏形碼輸入法,將
tangutcjkk.schema.yaml與tangutcjkk.dict.yaml複製到Rime 用戶文件夾。 - 將定製檔的
tangutcjkk.custom.yaml複製到Rime 用戶文件夾。 - 確保用戶文件夾下的
default.yaml已經啓用tangutcjkk輸入法schema_list: - schema: ... - schema: tangutcjkk
- 部署輸入法變更
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
| class CaptureFactory { | |
| static *id(fn) { | |
| yield fn; | |
| } | |
| } | |
| function dummy() {} | |
| class C {} | |
| class A extends CaptureFactory { |
Let
- Determine
$a$ - Prove that there exists a line
$y = b$ , such that there are three different intersections of$y = b$ ,$y = f(x)$ and$y = g(x)$ , and the x-coordinates of these points form an arithmatic sequence
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
| /** | |
| input | |
| ``` | |
| import * as t from "@babel/types" | |
| t.isIdentifier(node) | |
| ``` | |
| output | |
| ``` |
AST examples of Pattern Matching ESTree Proposal
Note: The ExpressionStatement and Program node are omitted in the examples.
match (x) {
when ({ colour: "#000000" }) { "yes" }
else {
"no"
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 Benchmark from "benchmark"; | |
| import { report } from "./util.mjs"; | |
| const suite = new Benchmark.Suite(); | |
| const reservedWords = [ | |
| "break", | |
| "case", | |
| "catch", | |
| "continue", |
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
| const glob = require("glob"); | |
| const fs = require("fs"); | |
| glob( | |
| "./packages/babel-parser/test/fixtures/**/options.json", | |
| {}, | |
| function (err, files) { | |
| if (err) throw err; | |
| for (const file of files) { | |
| const contents = JSON.stringify(JSON.parse(fs.readFileSync(file))); |
Workflow:
Sort current dictionary in the order of Block > Cangjie code
node ./sort-dict.mjs /path/to/cangjie5.dict.yaml
Merge Cangjie5.txt of https://github.com/Jackchows/Cangjie5 to cangjie5.dict.yaml
node ./merge-cangjie5-txt.mjs /path/to/Cangjie5.txt /path/to/cangjie5.dict.yaml
node --expose_gc ./wrapper.js ./payload.js
Expected:
[Function: gc] true
[Function: gc]
NewerOlder