Update
This commit is contained in:
rodič
f3407953df
revize
005259bf26
2
Makefile
2
Makefile
|
@ -70,7 +70,7 @@ changelog:
|
||||||
schedule: plan
|
schedule: plan
|
||||||
|
|
||||||
plan:
|
plan:
|
||||||
deno run --unstable --allow-read --allow-write utils/plan.js
|
deno run --unstable --allow-read --allow-write utils/plan.js $(num)
|
||||||
|
|
||||||
plan-candidates:
|
plan-candidates:
|
||||||
js-yaml dist/22/schedule-candidates.json > spec/22/schedule-candidates.yaml
|
js-yaml dist/22/schedule-candidates.json > spec/22/schedule-candidates.yaml
|
||||||
|
|
|
@ -85,3 +85,4 @@
|
||||||
|
|
||||||
- id: other
|
- id: other
|
||||||
name: Ostatní
|
name: Ostatní
|
||||||
|
hidden: true
|
||||||
|
|
|
@ -381,7 +381,10 @@ class UTXOPlanner {
|
||||||
async function main() {
|
async function main() {
|
||||||
const limit = 100000;
|
const limit = 100000;
|
||||||
let i = 0;
|
let i = 0;
|
||||||
|
const numResults = Deno.args[0] || 10;
|
||||||
|
|
||||||
console.log("Planning started ..");
|
console.log("Planning started ..");
|
||||||
|
console.log(`Looking for ${numResults} results`);
|
||||||
|
|
||||||
const plans = [];
|
const plans = [];
|
||||||
|
|
||||||
|
@ -403,7 +406,7 @@ async function main() {
|
||||||
plans.push({ schedule: planner.schedule, metrics });
|
plans.push({ schedule: planner.schedule, metrics });
|
||||||
}
|
}
|
||||||
|
|
||||||
if (plans.length >= 10) {
|
if (plans.length >= numResults) {
|
||||||
const outputFn = "./dist/22/schedule-candidates.json";
|
const outputFn = "./dist/22/schedule-candidates.json";
|
||||||
console.log(`Writing result: ${outputFn}`);
|
console.log(`Writing result: ${outputFn}`);
|
||||||
const filtered = plans.sort((x, y) =>
|
const filtered = plans.sort((x, y) =>
|
||||||
|
|
|
@ -15,3 +15,5 @@ items:
|
||||||
type: string
|
type: string
|
||||||
examples:
|
examples:
|
||||||
type: string
|
type: string
|
||||||
|
hidden:
|
||||||
|
type: boolean
|
||||||
|
|
|
@ -85,6 +85,9 @@ const methods = {
|
||||||
async tracksGen() {
|
async tracksGen() {
|
||||||
const output = [];
|
const output = [];
|
||||||
for (const track of tracks) {
|
for (const track of tracks) {
|
||||||
|
if (track.hidden) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
output.push(
|
output.push(
|
||||||
`<details>\n\n<summary>${track.name}</summary>\n\n${track.examples.trim()}\n\n</details>`,
|
`<details>\n\n<summary>${track.name}</summary>\n\n${track.examples.trim()}\n\n</details>`,
|
||||||
);
|
);
|
||||||
|
|
Načítá se…
Odkázat v novém úkolu