Skip to content

Instantly share code, notes, and snippets.

<html>
<head>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/scittle.js" type="application/javascript"></script>
<script crossorigin src="https://cdn.jsdelivr.net/npm/react@18/umd/react.production.min.js"></script>
<script crossorigin src="https://cdn.jsdelivr.net/npm/react-dom@18/umd/react-dom.production.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/scittle.reagent.js" type="application/javascript"></script>
<script type="application/x-scittle">
(require '[reagent.core :as r]
'[reagent.dom :as rdom])
<html>
<head>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/scittle.js" type="application/javascript"></script>
<script type="application/x-scittle">
(defn my-alert []
(js/alert "You clicked!"))
;; export function to use from JavaScript:
(set! (.-my_alert js/window) my-alert)
</script>
</head>
@sogaiu
sogaiu / notes.md
Last active November 5, 2025 13:33

suppose cloned content is:

my-dir/a.janet
my-dir/b.janet
my-dir/my-subdir/c.janet

assuming trailing "/" means something is a directory...

@sogaiu
sogaiu / info-jdn-edit.janet
Last active November 3, 2025 14:00
take n
(import ./location :as l)
(import ./zipper :as j)
(import ./loc-jipper :as j)
(comment
(def info-jdn-src
```
{:name "jeep"
:version "DEVEL"
@sogaiu
sogaiu / info-jdn-edit.janet
Last active November 3, 2025 10:39
take 3
(import ./location :as l)
(import ./zipper :as j)
(import ./loc-jipper :as j)
(comment
(def info-jdn-src
```
{:name "jeep"
:version "DEVEL"
@sogaiu
sogaiu / info-jdn-edit.janet
Last active November 3, 2025 10:41
take 2
(import ./location :as l)
(import ./zipper :as j)
(import ./loc-jipper :as j)
(comment
(def info-jdn-src
```
{:name "jeep"
:version "DEVEL"
@sogaiu
sogaiu / info-jdn-tweak.janet
Last active November 3, 2025 08:41
initial take
(import ./location :as l)
(import ./zipper :as j)
(import ./loc-jipper :as j)
(comment
(def info-jdn-src
```
{:name "jeep"
:version "DEVEL"
@sogaiu
sogaiu / info.jdn.janet
Last active November 2, 2025 03:48
"compile" different ways of expressing "source, destination" to a common "lowest level" form
{# ...
# most verbose / "lowest-level" form
:vendored
{{:name "some-bundle-bits"
:url "https://github.com/sogaiu/some-bundle-bits"
:tag "4107fac44205f99a2e8eafddb26ef6126800d02e"}
[["mypath.janet" "bundle/mypath.janet"]
["support.janet" "bundle/support.janet"]]
#
@sogaiu
sogaiu / gist:26fd1fd178ebc85d307f38179be5b900
Created October 29, 2025 02:57
how to remove a subrepo that's tracked by git subrepo
# suppose subrepo is my-subrepo
git subrepo clean my-subrepo
rm -rf my-subrepo # removes my-subrepo/.subrepo too
git commit
git subrepo status # verify no traces
# adapted bits from https://github.com/ingydotnet/git-subrepo/issues/239