Skip to content

Instantly share code, notes, and snippets.

View zefhemel's full-sized avatar

Zef Hemel zefhemel

View GitHub Profile

#meta

Proof of concept (and WIP) AI features for SilverBullet.

Currently implemented commands:

  • AI: Chat (bound to Cmd-Enter/Ctrl-Enter)
  • AI: Analyze With Prompt (see below for an example)

Proof-of-concept library to easily build DOM-based Lua widgets with the magic of Lua meta tables.

Usage

-- any HTML tag can be used here
dom.span {
  -- tag attributes can be set like this:
@zefhemel
zefhemel / file.md
Created March 30, 2025 09:35
Test gist

This is cool

This is a test gist

randomAttribute
10

Supper yo (updates)

Feedback Actively seeking and responding positively to thoughtful feedback. Giving thoughtful feedback and investing time in others.

@zefhemel
zefhemel / focalboard-deno.js
Last active April 6, 2021 14:52
Focalboard Deno API
export class Focalboard {
constructor(url, token, workspaceId) {
this.url = url;
this.token = token;
this.workspaceId = workspaceId;
}
async allBlocks() {
let result = await fetch(`${this.url}/api/v1/workspaces/${this.workspaceId}/blocks?type=view`, {
headers: {
@zefhemel
zefhemel / reaction-tracker.md
Created March 26, 2021 08:32
A simple reaction tracker in Matterless

Environment

server: https://community.mattermost.com
me_token: XXX
bot_token: XXX

MattermostClient: TrackerClient

url: $server
@zefhemel
zefhemel / user.json
Created September 2, 2014 07:19
.ejs JavaScript highlighting for Zed
{
// whatever was already there, and add:
modes: {
javascript: {
extensions: ["ejs"]
}
}
}
@zefhemel
zefhemel / webfs.py
Last active August 29, 2015 14:05
WebFS server
#!/usr/bin/python
## Usage: webfs.py [rootPath] [port]
## rootPath defaults to $HOME
## port defaults to 1338
from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer
import os, os.path
import sys
import cgi
modes: {
markdown: {
handlers: {
preview: [
"!Tools:Preview"
"Github:Markdown:Preview"
]
}
}
}