demo
tag 1
tag 2

Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mattis eros. Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede.

Donec nec justo eget felis facilisis fermentum. Aliquam porttitor mauris sit amet orci. Aenean dignissim pellentesque felis.Morbi in sem quis dui placerat ornare. Pellentesque odio nisi, euismod in, pharetra a, ultricies in, diam. Sed arcu. Cras consequat.

Lorem ipsum dolor sit amet Link inside text Lorem ipsum dolor sit amet

Example of text highlight

Heading 2

Donec nec justo eget felis facilisis fermentum. Aliquam porttitor mauris sit amet orci. Aenean dignissim pellentesque felis.Morbi in sem quis dui placerat ornare. Pellentesque odio nisi, euismod in, pharetra a, ultricies in, diam. Sed arcu. Cras consequat.

Example of a process

  • Golem, a global, open-source, decentralized supercomputer that anyone can access.
  • Learn what you need to know to set-up your Golem requestor node:
  • Requestor development: a quick primer
  • Quick start
  • Have a look at the most important concepts behind any Golem application: Golem application fundamentals

Donec nec justo eget felis facilisis fermentum. Aliquam porttitor mauris sit amet orci. Aenean dignissim pellentesque felis.Morbi in sem quis dui placerat ornare. Pellentesque odio nisi, euismod in, pharetra a, ultricies in, diam. Sed arcu. Cras consequat.

Example standard bullets

  • Golem, a global, open-source, decentralized supercomputer that anyone can access.
  • Learn what you need to know to set-up your Golem requestor node:
  • Requestor development: a quick primer
  • Quick start
  • Have a look at the most important concepts behind any Golem application: Golem application fundamentals

Donec nec justo eget felis facilisis fermentum. Aliquam porttitor mauris sit amet orci. Aenean dignissim pellentesque felis.Morbi in sem quis dui placerat ornare. Pellentesque odio nisi, euismod in, pharetra a, ultricies in, diam. Sed arcu. Cras consequat.

Example standard bullets

  1. Golem, a global, open-source, decentralized supercomputer that anyone can access.
  2. Learn what you need to know to set-up your Golem requestor node:
  3. Requestor development: a quick primer
  4. Quick start
  5. Have a look at the most important concepts behind any Golem application: Golem application fundamentals

Donec nec justo eget felis facilisis fermentum. Aliquam porttitor mauris sit amet orci. Aenean dignissim pellentesque felis.Morbi in sem quis dui placerat ornare. Pellentesque odio nisi, euismod in, pharetra a, ultricies in, diam. Sed arcu. Cras consequat.

info

Now you know what a Golem VM application is and how it works.

success

Now you know what a Golem VM application is and how it works.

warning

Now you know what a Golem VM application is and how it works.

danger

Now you know what a Golem VM application is and how it works.

#!/bin/bash
echidna "Hello, Mars!" # gibberish: 'echidna' is not a valid bash command
tumbleweed | unicorns --glittery # again, 'tumbleweed' and 'unicorns' are not recognized commands
armadillo=$(cats playing_piano) # 'cats' not a recognized command, misuse of command substitution syntax
echo $rainbowFrogs # 'rainbowFrogs' not defined or given any value
See also

JS Docs

Have a problem that can be split into multiple computational tasks that will run in parallel on Golem

Want to use either Node.js or web browser to schedule the tasks

Need more control over the deployment process on Golem Network (like adjust market strategy)

Python Docs

Want to deploy an application on Golem that consists of service(s) that run constantly

Already use Docker or Docker Compose to deploy your application

Want to use a YAML-based approach to configure the deployment

Example of an image being used

Hacker image

working comments (see source)

(below this line there is comment: see source)

(above this line there is a comment: see source)

Example of code from Github

import { TaskExecutor } from "@golem-sdk/golem-js";
import { program } from "commander";
import { fileURLToPath } from "url";
const __dirname = fileURLToPath(new URL(".", import.meta.url));

const blender_params = (frame) => ({
  scene_file: "/golem/resource/scene.blend",
  resolution: [400, 300],
  use_compositing: false,
  crops: [
    {
      outfilebasename: "out",
      borders_x: [0.0, 1.0],
      borders_y: [0.0, 1.0],
    },
  ],
  samples: 100,
  frames: [frame],
  output_format: "PNG",
  RESOURCES_DIR: "/golem/resources",
  WORK_DIR: "/golem/work",
  OUTPUT_DIR: "/golem/output",
});

async function main(subnetTag: string, driver?: string, network?: string, debug?: boolean, maxParallelTasks?: number) {
  const executor = await TaskExecutor.create({
    subnetTag,
    payment: { driver, network },
    package: "golem/blender:latest",
    logLevel: debug ? "debug" : "info",
    maxParallelTasks,
  });

  executor.beforeEach(async (ctx) => {
    await ctx.uploadFile(`${__dirname}/cubes.blend`, "/golem/resource/scene.blend");
  });

  const results = executor.map<number, string>([0, 10, 20, 30, 40, 50], async (ctx, frame) => {
    const result = await ctx
      .beginBatch()
      .uploadJson(blender_params(frame), "/golem/work/params.json")
      .run("/golem/entrypoints/run-blender.sh")
      .downloadFile(`/golem/output/out${frame?.toString().padStart(4, "0")}.png`, `${__dirname}/output_${frame}.png`)
      .end()
      .catch((e) => console.error(e));
    return result?.length ? `output_${frame}.png` : "";
  });
  for await (const result of results) console.log(result);
  await executor.end();
}

program
  .option("--subnet-tag <subnet>", "set subnet name, for example 'public'")
  .option("--payment-driver, --driver <driver>", "payment driver name, for example 'erc20'")
  .option("--payment-network, --network <network>", "network name, for example 'goerli'")
  .option("-d, --debug", "output extra debugging")
  .option("-t, --max-parallel-tasks <maxParallelTasks>", "max parallel tasks");
program.parse();
const options = program.opts();
main(options.subnetTag, options.driver, options.network, options.debug, options.maxParallelTasks);

How to import from other files

If you wish to import content from another file, these files has to go into the src/markdoc/partials directory. You can then import the content using the following syntax.

{% partial file="demo.md" /%}

Keep in mind that this partial syntax root is in the directory specified above.

I'm saying hello from the partials demo file!