Skip to content

Instantly share code, notes, and snippets.

View scripting's full-sized avatar

Dave Winer scripting

View GitHub Profile
@scripting
scripting / universalMentions.md
Created June 14, 2026 00:04
ChatGPT summary of its observations re "Universal Mentions"

Universal Mentions

Universal Mentions is a simple convention for mentioning people on the open web without needing a central username system.

On Twitter/X, Bluesky, Mastodon, and similar systems, a mention is usually something like:

@davewiner

That only works because each platform controls its own user directory. On the open web, there is no single global directory of usernames.

@scripting
scripting / demo.js
Created June 12, 2026 14:40
A script used to generate Wikipedia-style pages via ChatGPT
//mypedia -- build a short, balanced reference page about a name, using ChatGPT.
const name = args [0];
if (name === undefined) {
console.log ("Usage: belt mypedia.belt \"name\"");
}
else {
//first-cut prompt -- refine the wording here.
const prompt = "Build a short, balanced reference page about " + name + ". "
+ "Follow the structure of a Wikipedia article but keep it brief -- an outline of the basic facts, not a long detailed treatment. "

Superman

Superman is a fictional superhero appearing in comic books published by DC Comics. The character was created by writer Jerry Siegel and artist Joe Shuster, debuting in "Action Comics" #1 in June 1938. Known as a cultural icon, Superman is often hailed as the archetype of the superhero trope and has had a profound impact on American culture and beyond.

Creation and Development

Superman was conceived during the Great Depression, initially as a villain in a short story and later reimagined as a hero. Siegel and Shuster sold the character to Detective Comics, Inc., which later became DC Comics, kickstarting what is considered the Golden Age of Comic Books.

Character Overview

@scripting
scripting / repeatProcess.js
Created May 12, 2026 21:28
This code was coming up all over the place and I wanted to make it easy to find.
function addFeedsIfNecessary (urlsToCheck, callback) {
const ctTotalFeeds = urlsToCheck.length;
var ixNext = 0, ctInFlight = 0, ctDone = 0;
function startMore () {
while (true) {
if (ctInFlight >= config.maxConcurrentFeedChecks) {
break;
}
if (ixNext >= ctTotalFeeds) {
break;
@scripting
scripting / checkDomains.js
Created March 24, 2026 16:20
Frontier script that finds out if files a folder of domains have moved
on checkDomains () {
«Changes
«3/24/26; 11:39:01 AM by DW
«Loop over all the domains that were on Palatka and see which ones still resolve to palatka's IP address.
«tcp.dns.getdottedid ("palatka.scripting.com")
«"161.35.120.52"
«tcp.dns.getdomainname ("161.35.120.52")
«"161.35.120.52"
local (domainsFolder = nodeEditorSuite.getAllServersFolder () + "palatka:pagepark:domains:");
@scripting
scripting / wordpressPost.json
Created March 15, 2026 01:28
This is the basic data that WordPress keeps for each post
{
"idPost": 1653,
"idSite": 237777565,
"title": "An example for the docs",
"guid": "http://daveverse.org/2025/07/05/an-example-for-the-docs/",
"content": "<p>I enjoy working on the <a href=\"https://github.com/scripting/wpIdentity\">wpIdentity</a> package, esp a design-heavy, code-lite feature like the metadata. </p>\n<p>This is an example post for the docs on the metadata feature that has been added today. </p>\n<p>Here&#39;s a list of seven things whose names begin with O.</p>\n<ol>\n<li><a href=\"https://en.wikipedia.org/wiki/Oreo\">Oreo cookies</a></li>\n<li>Optimism</li>\n<li><a href=\"https://en.wikipedia.org/wiki/Organic_food\">Organic food</a></li>\n<li>Opportunity knocks</li>\n<li>Oregon</li>\n<li>Ooops!</li>\n<li>Offred</li>\n</ol>\n",
"type": "post",
"categories": [
"Uncategorized"
],
@scripting
scripting / edges.json
Last active March 12, 2026 23:00
This is backup for a blog post, see the first comment for a link to the post.
[
{
"idPost": 147,
"idSite": 250464612,
"title": "",
"guid": "https://comments31.wordpress.com/2026/02/27/147/",
"content": "<p>okay this should be a new reply to the spurlocks.</p>\n",
"type": "post",
"categories": [
"comment",
@scripting
scripting / opmlProjectEditorDocs.md
Created March 1, 2026 14:44
opmlProjectEditor format

opmlProjectEditor Format

A reference document for working with the opmlProjectEditor format used by Dave Winer's OPML Editor and Frontier-based tools.

Overview

opmlProjectEditor is a way of storing a multi-file software project in a single OPML file. Each top-level outline node under the project headline represents a file. The file's contents are stored as child outline nodes, one node per line, with indentation representing code structure.

File Structure

@scripting
scripting / callingMicroBlog.js
Created February 22, 2026 20:06
How I publish from Drummer to micro.blog
var urlOutline = opml.getHeaders ().urlPublic;
if (urlOutline === undefined) {
dialog.alert ("Can't publish your outline because it doesn't have an \"urlPublic\" head-level attribute.");
}
else { //ping the server
http.readUrl ("https://micro.blog/ping?url=" + urlOutline); //ping the server
http.readUrl ("http://micro.blog/ping?url=https://dave.micro.blog/feed.xml") //ask it to read the RSS feed
var options = { //try to make the update happen immediately
@scripting
scripting / demo.html
Created February 20, 2026 14:12
HTML in an outline structure
<div class="divItemSummary">
<div class="divAvatarContainer">
<div class="divAvatar">
<img width="64" height="64" src="https://i0.wp.com/daveverse.org/wp-content/uploads/2026/01/cropped-brilliantTree.png?fit=96%2C96&amp;ssl=1">
</div>
</div>
<div class="divTextContainer">
<div class="divTopline">
<div class="spSiteLink"></div>
</div>