This file contains hidden or 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
{ | |
"name": "wpupload", | |
"description": "Develop and test code to upload images to wordpress.com.", | |
"version": "0.4.0", | |
"main": "wpupload.js", | |
"dependencies" : { | |
"daveutils": "*", | |
"wpcom": "*" | |
} | |
} |
This file contains hidden or 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 getBlogrollOptions (headLevelAtts) { | |
/* | |
4/15/24; 8:58:41 AM by DW | |
The author of the blog can enable a blogroll via three head-level attributes. | |
We're looking for these -- | |
blogrollUsername -- required | |
blogrollServer -- optional | |
blogrollCategory -- optional | |
Defaults |
This file contains hidden or 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
const appConsts = { | |
title: "Chuck's Blogroll", | |
idWhereToAppend: "idBlogrollContainer", | |
urlFeedlandServer: "https://feedland.social/", | |
urlSocketServer: "wss://feedland.social/", | |
urlBlogrollOpml: "https://feedland.com/opml?screenname=cagrimmett&catname=blogroll", | |
urlFeedlandViewBlogroll: "https://feedland.com/?username=cagrimmett&catname=blogroll", | |
maxItemsInBlogroll: 40, | |
flShowSocketMessages: true, | |
flBlogrollUpdates: true, |
This file contains hidden or 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
{ | |
"title": "People and Blogs", | |
"script": "console.log('Made with FeedLand - https://feedland.com'); var ribbon = document.createElement('div'); ribbon.classList.add('ribbon'); ribbon.innerHTML = '<a href=\"https://feedland.com\" target=\"_blank\">Made with FeedLand</a></div>'; document.getElementsByClassName('divPageBody')[0].appendChild(ribbon);", | |
"style": <code> | |
body { font-family: 'Sentient', 'Georgia',serif; background-color: #fffcf2; } | |
.ribbon { background-color: #f2a93c; overflow: hidden; white-space: nowrap; position: absolute; left: -50px; top: 40px; transform: rotate(-45deg); box-shadow: 0 0 10px #999;} | |
.ribbon a { color: #fff; display: block; font: bold 81.25% 'Helvetica Neue', Helvetica, Arial, sans-serif; margin: 1px 0; padding: 8px 50px; text-align: center; text-decoration: none; } | |
.divNewsProduct .divProductTitle { font-family: unset; letter-spacing: unset; } | |
.divTabsContainer .divTabs li { font-family: unset; } | |
.divPageBody |
This file contains hidden or 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
{ | |
"githubServeFrom": { | |
"username": "scripting", | |
"repository": "SomePrivateRepoasdfasdfxxxx", | |
"path": "docs", | |
"accessToken": "hellofromsanjose" | |
}, | |
"indexFilename": "README", | |
"urlDefaultMarkdownTemplate": "https://s3.amazonaws.com/scripting.com/code/feedland/docswebsite/markdowntemplate.txt", |
This file contains hidden or 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 saveReadingList (screenname, catname, fname) { | |
local (url = "https://feedland.com/opml?screenname=" + screenname + "&catname=" + catname); | |
local (opmltext = tcp.httpreadurl (url)); | |
file.writewholefile (githubfolder + "lists:" + fname, opmltext) | |
}; | |
saveReadingList ("davewiner", "podcasts", "davepodcasts.opml") |
This file contains hidden or 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
create table programs ( | |
id varchar (255), | |
type varchar (32), | |
title varchar (255), | |
screenname varchar (255), | |
approved boolean, | |
whencreated datetime, | |
whenmodified datetime, | |
primary key (id) | |
); |
This file contains hidden or 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
const urlRiver = "https://feedland.org/getriverfromreadinglist?url=https://lists.feedcorps.org/artshow.opml"; | |
function httpRequest (url, timeout, headers, callback) { | |
timeout = (timeout === undefined) ? 30000 : timeout; | |
var jxhr = $.ajax ({ | |
url: url, | |
dataType: "text", | |
headers, | |
timeout | |
}) |
This file contains hidden or 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
{ | |
"githubServeFrom": { | |
"username": "scripting", | |
"repository": "SomePrivateRepo", | |
"path": "docs", | |
"accessToken": "hellofromsanjose" | |
}, | |
"indexFilename": "README", | |
"urlDefaultMarkdownTemplate": "https://s3.amazonaws.com/scripting.com/code/feedland/docswebsite/markdowntemplate.txt", | |
"pageParams": { |
This file contains hidden or 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 testUserDatafiles (ctsecs=0) { //9/19/23 by DW | |
function oneTest (callback) { | |
const fname = "test.json", whenstart = new Date (); | |
var theTestData = { | |
theArray: new Array () | |
} | |
for (var i = 1; i <= 15; i++) { | |
theTestData.theArray.push (getRandomSnarkySlogan ()); | |
} | |
uploadUserDataFile (fname, jsonStringify (theTestData), "application/json", true, function (err, data) { |