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 xmlVisit (adrx, callback, level, path) { | |
if (level === undefined) { | |
level = 0; | |
} | |
if (path === undefined) { | |
path = ""; | |
} | |
$(adrx).children ("outline").each (function () { | |
var flvisitsubs = true, name = xmlGetNodeName (this); |
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 opGetBarCursor () { //11/12/14 by DW | |
return ($(getActiveOutliner ()).concord ().op.getCursorRef ()); | |
} | |
function dateToNumber (theDate) { //2/15/15 by DW | |
return (Number (new Date (theDate))); | |
} | |
function opGetMywordJstruct (theNode) { //2/15/15 by DW | |
if (theNode == undefined) { | |
theNode = opGetBarCursor (); | |
} |
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
I'm using the Mac GitHub client, and these weird files keep showing up and I have to delete them before anything will work. | |
Here's a screen shot. | |
http://scripting.com/2015/03/21/koreanchars.png | |
As far as I know I'm not doing anything to create them. | |
Any clues would be much appreciated. |
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
var requestSettings = { | |
method: 'GET', | |
url: theEnclosure.url, | |
encoding: null | |
}; | |
request (requestSettings, function (error, response, body) { | |
if (!error && (response.statusCode == 200)) { | |
fs.writeFile ("podcast.mp3", body, function (err) { | |
console.log (body.length + " bytes written to file."); |
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
<html> | |
<head> | |
<title>Dave's MyWord Blog Home</title> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<link rel="alternate" type="application/rss+xml" href="http://myword.io/users/davewiner/rss.xml" /> | |
<script src="http://fargo.io/code/jquery-1.9.1.min.js"></script> | |
<link href="http://fargo.io/code/bootstrap.css" rel="stylesheet"> |
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
{ | |
"urlSiteContents": "https://dl.dropboxusercontent.com/u/36518280/pageParkDemo" | |
} |
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
var myVersion = "0.43"; | |
//last build 4/17/2014; 1:03:26 PM | |
var http = require ("http"); | |
var AWS = require ("aws-sdk"); | |
var s3 = new AWS.S3 (); | |
var urlpack = require ("url"); | |
var xmlrpc = require ("xmlrpc"); |
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
//By Dave Winer, May 12, 2015. | |
//I use this script to copy the only files that River4 produces that have to be publicly accessible. | |
//It only copies if the dest file doesn't exist or if the content of the files has changed. | |
//I use Noderunner to run it once every minute: https://github.com/scripting/noderunner | |
var sourcefolder = "/root/river4data/rivers/"; |
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
var request = require ("request"); | |
var opmlParser = require ("opmlparser"); | |
function stringMid (s, ix, len) { //8/12/14 by DW | |
return (s.substr (ix-1, len)); | |
} | |
function filledString (ch, ct) { //6/4/14 by DW | |
var s = ""; | |
for (var i = 0; i < ct; i++) { | |
s += ch; | |
} |
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
{ | |
"myPort": 80, | |
"indexFilename": "index", | |
"flProcessScriptFiles": true, | |
"extScriptFiles": "js", | |
"flProcessMarkdownFiles": true, | |
"extMarkdownFiles": "md", | |
"domainMap": { | |
"judgment.club": 5351, | |
"twitter.radio3.io": 5342, |