A Pen by Jason Davis on CodePen.
| <div class='demo'> | |
| <div class='icons'> | |
| <div class='app-icon app-icon-1'> | |
| <p>♫</p> | |
| </div> | |
| <div class='app-icon app-icon-2'> | |
| <p></p> | |
| </div> | |
| <div class='app-icon app-icon-3'> | |
| <p>✉</p> |
These libraries can be used to quickly create a GUI for configureable parameters using sliders, checkboxes, colors pickers etc
- Tweakpane https://github.com/cocopon/tweakpane Demo: https://cocopon.github.io/tweakpane/
- control-panel https://github.com/freeman-lab/control-panel
- ControlKit https://github.com/automat/controlkit.js
- guify https://github.com/colejd/guify Main site is down, here is the demo https://jons.website/projects/guify/index
- oui https://github.com/wearekuva/oui
- Palette.js https://github.com/lehni/palette.js
| function getNumOfGames(campaign) { | |
| let numOfGames = app.plugins.plugins.dataview.api | |
| .pages(`"ttrpgs/${campaign}"`) | |
| .where(page => { | |
| if (page.type === 'session') { | |
| if (page.campaign === campaign) { | |
| return true; | |
| } | |
| } | |
| }).length |
| /* | |
| This script returns a list of activity options you could do (each defined by a Markdown file), | |
| depending on how much time you have available. | |
| REQUIRES: | |
| - Obsidian: https://obsidian.md | |
| - Obsidian Dataview plugin: https://blacksmithgu.github.io/obsidian-dataview/ | |
| - Obsidian Templater plugin: https://silentvoid13.github.io/Templater/ | |
| - this folder structure: |
A pattern for building personal knowledge bases using LLMs.
This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.
Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.
| """ | |
| The most atomic way to train and inference a GPT in pure, dependency-free Python. | |
| This file is the complete algorithm. | |
| Everything else is just efficiency. | |
| @karpathy | |
| """ | |
| import os # os.path.exists | |
| import math # math.log, math.exp |
| <%* | |
| let raindrop = tp.user.raindrop; | |
| let collections = await raindrop.collections(); | |
| let collection = await tp.system.suggester((item) => item.title, collections); | |
| let raindrops = await raindrop.raindrops(collection._id); | |
| let drop = await tp.system.suggester((item) => item.title, raindrops); | |
| drop = await raindrop.raindrop(drop._id); | |
| let title = drop.title | |
| let url = drop.link |