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