prologic / Slightly modified version of Surreal.js
0 likes
0 forks
1 files
Last active
1 | // Welcome to Surreal 1.2.1 (slightly modified) |
2 | // Documentation: https://github.com/gnat/surreal |
3 | // Locality of Behavior (LoB): https://htmx.org/essays/locality-of-behaviour/ |
4 | let surreal = (function () { |
5 | let $ = { // Convenience for internals. |
6 | $: this, // Convenience for internals. |
7 | plugins: [], |
8 | |
9 | // Table of contents and convenient call chaining sugar. For a familiar "jQuery like" syntax. 🙂 |
10 | // Check before adding new: https://youmightnotneedjquery.com/ |
prologic / HTMX Cheatsheet
0 likes
0 forks
1 files
Last active
Cheat Sheet for HTMX (https://htmx.org) -- The Hypermedia system
Sure! Here's a Markdown cheatsheet for the key concepts and capabilities of htmx:
```markdown
# htmx Cheatsheet
## Getting Started
Include htmx in your HTML:
```html
<script src="https://unpkg.com/htmx.org"></script>
```
prologic / Tau1 Patch optimizing the NewFrame call
0 likes
0 forks
1 files
Last active
1 | diff --git a/internal/vm/frame.go b/internal/vm/frame.go |
2 | index 4d40d22..d18e159 100644 |
3 | --- a/internal/vm/frame.go |
4 | +++ b/internal/vm/frame.go |
5 | @@ -1,10 +1,14 @@ |
6 | package vm |
7 | |
8 | import ( |
9 | + "fmt" |
10 | + |
prologic / gist:9394a0e1d04d4d4d8e2dd3eec145dbb3
0 likes
0 forks
1 files
Last active
1 | prologic@JamessMacStudio |
2 | Sun Dec 17 20:39:11 |
3 | ~/tmp/tau |
4 | (master) 0 |
5 | $ make |
6 | if [ ! -d libffi ] || [ $(ls -1q libffi | wc -l) -eq 0 ]; then \ |
7 | git submodule init; \ |
8 | git submodule update --recursive; \ |
9 | fi |
10 | Submodule 'libffi' (https://github.com/libffi/libffi) registered for path 'libffi' |
prologic / gist:fc5290f62c07494590a7e4bc2804c126
0 likes
0 forks
1 files
Last active
1 | $ bat -print=h http://darch.dk/twtxt.txt |
2 | HTTP/1.1 200 OK |
3 | Content-Type : text/plain; charset=utf-8 |
4 | Vary : Accept-Encoding |
5 | Date : Fri, 24 Nov 2023 22:07:49 GMT |
6 | Content-Encoding : gzip |
7 | Content-Length : 6802 |
8 | Connection : Keep-Alive |
9 | Keep-Alive : timeout=5, max=100 |
10 | Accept-Ranges : bytes |
prologic / Collection.List()
0 likes
0 forks
2 files
Last active
Trying to add support for Collection.List() in Bitcask
1 | package bitcask |
2 | |
3 | import ( |
4 | "encoding/json" |
5 | "errors" |
6 | "fmt" |
7 | "reflect" |
8 | ) |
9 | |
10 | var ( |
prologic / Bitcask patch for ostafen/clover
1 likes
0 forks
1 files
Last active
Patch to https://github.com/ostafen/clover to add support for Bitcask (https://git.mills.io/prologic/bitcask)
1 | commit f11d842d19ec0cb4a65132842e3af451fab50570 |
2 | Author: James Mills <1290234+prologic@users.noreply.github.com> |
3 | Date: Mon Oct 23 01:13:28 2023 +1000 |
4 | |
5 | WIP: Add support for Bitcask |
6 | |
7 | diff --git a/.vscode/settings.json b/.vscode/settings.json |
8 | new file mode 100644 |
9 | index 0000000..326023c |
10 | --- /dev/null |
Newer
Older