Skip to content

Instantly share code, notes, and snippets.

2025-04-05

@sogaiu
sogaiu / janet-pm-and-bundle.md
Created March 25, 2025 07:10
janet-pm and bundle

from some light testing, it looks like janet-pm ultimately makes use of a bundle subdirectory (which gets created if there isn't one already) within a project's directory.

i have a project that already has a bundle directory (it predates janet-pm) and for that project, i observe that janet-pm makes use of the bundle dir and its content (e.g. init.janet and info.jdn).

if i remove the bundle subdirectory and then use janet-pm, it looks like a bundle subdirectory is created and populated (so that it makes use of project.janet -- the content of bundle looks to be dependent on spork).

@sogaiu
sogaiu / info.jdn
Created March 25, 2025 02:45
sample content of generated bundle directory
@{:dependencies @["spork"]
:jpm-dependencies @[]
:name "git-some-janets"
:repo "git+https://github.com/sogaiu/git-some-janets"
:url "https://github.com/sogaiu/git-some-janets"}
@sogaiu
sogaiu / interactive-svg.diff
Created March 24, 2025 10:17
interactive svg for easy dsls
diff --git a/www/img/frosthaven.svg b/www/img/frosthaven.svg
new file mode 100644
index 0000000..993f16e
--- /dev/null
+++ b/www/img/frosthaven.svg
@@ -0,0 +1,1578 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Do not edit this file with editors other than draw.io -->
+
+<svg
@sogaiu
sogaiu / janet-pm-man-page.md
Created March 24, 2025 01:09
janet-pm man page
JANET-PM(1)                 General Commands Manual                JANET-PM(1)

NAME
       janet-pm - the Janet Project Manager, a build tool for Janet

SYNOPSIS
       janet-pm [--flag ...] [--option=value ...] command args...

@sogaiu
sogaiu / janet-pm.md
Last active March 27, 2025 03:19
janet-pm output
$ janet-pm 
usage: janet-pm [--key=value, --flag] ... [subcommand] [args] ...

Run from a directory containing a project.janet file to perform
operations on a project, or from anywhere to do operations on the
global module cache (modpath).  Commands that need write permission to
the modpath are considered privileged commands - in some environments
they may require super user privileges.  Other project-level commands
need to have a ./project.janet file in the current directory.
@sogaiu
sogaiu / imagemap.diff
Created March 23, 2025 06:13
imagemap draft
diff --git a/www/index.html.pm b/www/index.html.pm
index 3782522..e0313d8 100644
--- a/www/index.html.pm
+++ b/www/index.html.pm
@@ -1,6 +1,9 @@
#lang pollen
-◊(require racket-lang-org/www/util racket-lang-org/www/color racket/format)
+◊(require racket-lang-org/www/util racket-lang-org/www/color racket/format pollen/tag)
+