View text.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html><html><head> <meta charset="utf-8"/> <title>Chat GPT: House Listing: Renovated Ranch.</title> <meta name="generator" content="chatGPT Saving Bookmark"/><style>body { background-color: rgb(32,33,35); color: rgb(236,236,241); font-size: 16px; font-family: sans-serif; line-height: 28px; margin: 0;}body > .w-full { padding: 30px;}/* prompt */body > .w-full:nth-child(2n+1) { background: rgb(52,53,65);}/* response */body > .w-full:nth-child(2n+2) { background: rgb(68,70,84);}a, a:visited { color: #7792cd;}pre { margin: 0 0 1em 0; display: inline-block; width: 100%;}pre code.hljs { margin-bottom: 1em; border-radius: 5px;}.whitespace-pre-wrap { white-space: pre-wrap;}.flex-col { max-width: 850px; margin: 0px auto;}</style><link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.7.0/build/styles/default.min.css"/></head><body><div class="group w-full text-gray-800 dark:text-gray-100 border-b border-black/10 dark:border-gray-900/50 dark:bg-gray-800"><div c |
View gist:36bec44af6892abb870c5fa798bf7431
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on letsWatchThatStinkingFolder () { | |
«Changes | |
«3/7/23; 11:55:58 AM by DW | |
«Created. | |
local (prefix = "chat-gpt-"); | |
local (sourcefolder = "Macintosh HD:Users:davewiner:Downloads:"); | |
local (destfolder = user.prefs.publicfolder + "chatgpt:"); | |
fileloop (f in sourcefolder) { | |
local (fname = file.filefrompath (f)); | |
if fname beginswith prefix { |
View config.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function readConfigJson (callback) { //2/8/23 by DW | |
var configJs; | |
try { | |
configJs = require ("./config.js"); | |
} | |
catch (err) { //try in the parent directory, assuming daveappserver is running in lib sub-directory | |
try { | |
configJs = require ("../config.js"); | |
} | |
catch (err) { //fallback to reading config.json |
View publish.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
var options = { //try to make the update happen immediately | |
type: "POST", | |
url: "http://micro.blog/ping", |
View filter.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//hello world filter.js for PagePark -- 9/30/22 by DW | |
const headers = {["Content-Type"]: "text/plain"}; | |
options.httpResponse.writeHead (200, headers); | |
options.httpResponse.end ("Hello World"); |
View localFileVerbs.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
localfile = { //verbs for Electric Drummer | |
read: function (path) { | |
return new Promise (function (resolve, reject) { | |
fs.readFile (path, function (err, data) { | |
if (err) { | |
reject (err); | |
} | |
else { | |
resolve (data); | |
} |
View rss.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!-- RSS generated by tweetfeed v2.0.1 on Wed, 17 Aug 2022 16:15:40 GMT --> | |
<rss version="2.0" xmlns:source="http://source.scripting.com/"> | |
<channel> | |
<title>davewiner tweets</title> | |
<link>http://twitter.com/davewiner</link> | |
<description>A feed of recent tweets from davewiner.</description> | |
<pubDate>Wed, 17 Aug 2022 16:15:35 GMT</pubDate> | |
<language>en-us</language> | |
<generator>tweetfeed v2.0.1</generator> |
View river.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"feeds": [ | |
{ | |
"feedUrl": "https://rss.nytimes.com/services/xml/rss/nyt/World.xml", | |
"items": [ | |
{ | |
"feedUrl": "https://rss.nytimes.com/services/xml/rss/nyt/World.xml", | |
"guid": "https://www.nytimes.com/live/2022/08/03/world/ukraine-russia-news-war", | |
"title": "Live Updates: Even as It Mounts Its Own Offensive, Ukraine Braces for a Russian Attack in the South", | |
"link": "https://www.nytimes.com/live/2022/08/03/world/ukraine-russia-news-war", |
View nodeerr.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
seattle:scripting.com-code-electricdrummer davewiner$ npx electron-builder -m | |
Need to install the following packages: | |
electron-builder | |
Ok to proceed? (y) y | |
npm WARN deprecated dmg-license@1.0.11: Disk image license agreements are deprecated by Apple and will probably be removed in a future macOS release. Discussion at: https://github.com/argv-minus-one/dmg-license/issues/11 | |
• electron-builder version=23.0.3 os=20.5.0 | |
• loaded configuration file=/Users/davewiner/nodeEditor/scripting.com-code-electricdrummer/electron-builder.json | |
• writing effective config file=dist/builder-effective-config.yaml | |
• installing production dependencies platform=darwin arch=arm64 appDir=/Users/davewiner/nodeEditor/scripting.com-code-electricdrummer | |
⨯ /usr/local/bin/node process failed ERR_ELECTRON_BUILDER_CANNOT_EXECUTE |
View item.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<item> | |
<description>This is an <b>example</b> of an item with a source:markdown element</description> | |
<pubDate>Sat, 28 May 2022 17:19:21 GMT</pubDate> | |
<guid isPermaLink="false">7305</guid> | |
<source:markdown>This is an **example** of an item with a source:markdown element.</source:markdown> | |
</item> |
NewerOlder