POST /RPC2 HTTP/1.0
User-Agent: Frontier/5.1.2 (WinNT)
Host: betty.userland.com
Content-Type: text/xml
Content-length: 181
<?xml version="1.0"?>
<methodCall>
examples.getStateName
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 zip = require ("davezip"); | |
| const fs = require ("fs"); | |
| const theArchiveFile = zip.createArchive ('outlines.zip"); | |
| fs.fileloop ("/users/bullmancuso/publicfiles/", function (err, f) { //I made up fs.fileloop, it would be nice ;-) | |
| if (f.hasExtension (".opml")) { | |
| zip.addToArchive (f, theArchiveFile); | |
| } | |
| }); | |
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
| { | |
| "mirrors": { | |
| "/": "http://scripting.com/images/2020/04/11/driveway.png" | |
| } | |
| } |
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
| //translate a url in this form: http://my.this.how/davewiner/example.opml | |
| //to a file path like this: /root/apps/littleoutliner/publicFiles/users/davewiner/myOutlines/example.opml | |
| exports.filter = filter; | |
| const folder = "/root/apps/littleoutliner/publicFiles/users/"; | |
| function filter (options, callback) { | |
| var url = options.httpRequest.url; | |
| var splits = url.split ("?"); |
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
| // Copyright 2020, Dave Winer | |
| // Copyright 2013, Small Picture, Inc. | |
| var concordKeystrokes = { | |
| "backspace": "backspace", | |
| "tab": "tab", | |
| "return": "return", | |
| "delete": "delete", | |
| "uparrow": "cursor-up", | |
| "downarrow": "cursor-down", |
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": "pagePark", | |
| "path": "" | |
| } | |
| } |
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 urlRepo = "https://github.com/scripting/test2"; | |
| const localFolderPath = "myAppFolder/"; | |
| git.clone (urlRepo, localFolderPath, function (err) { | |
| }); |
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": "test", | |
| "description": "Test app for persists package.", | |
| "author": "Dave Winer <dave@scripting.com>", | |
| "license": "MIT", | |
| "version": "0.4.0", | |
| "dependencies" : { | |
| "persists": "*" | |
| } | |
| } |
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": "proxypersisttest", | |
| "description": "A little test app that uses JavaScript proxy to manage a persistent stats object.", | |
| "author": "Dave Winer <dave@scripting.com>", | |
| "license": "MIT", | |
| "version": "0.4.0", | |
| "dependencies" : { | |
| "daveutils": "*" | |
| } | |
| } |