Skip to content

Instantly share code, notes, and snippets.

View scripting's full-sized avatar

Dave Winer scripting

View GitHub Profile
@scripting
scripting / index.html
Last active September 10, 2015 13:02
Source code for mlbriver.com
This page has moved to --
https://gist.github.com/scripting/be89904f454086103eb5
Still diggin! ;-)
Dave
@scripting
scripting / config.json
Created August 21, 2015 20:27
config.json for River4 v0.120
{
"flWatchAppDateChange": true,
"fnameApp": "river4.js"
}
@scripting
scripting / config.json
Created August 21, 2015 13:57
Example of a config.json for River4 that tells it to watch for quitnow.txt. Part of v0.119.
{
"flWatchForQuitFile": true
}
@scripting
scripting / config.json
Created July 30, 2015 12:20
An example of a PagePark config.json that redirects for a single document, and keeps serving the others as before. See change notes for v0.67.
{
"redirects": {
"/outlinerhowto.html": "http://fargo.io/docs/outlinerHowto.html"
}
}
@scripting
scripting / config.json
Last active August 29, 2015 14:26
A config.json for nodeStorage that specifies that files are stored in the local filesystem, not S3.
{
"enabled": true,
"myPort": 1229,
"myDomain": "storage.bloatware.org:1229",
"where": {
"flUseLocalFilesystem": true,
"publicPath": "mypublicfiles/",
"privatePath": "myprivatefiles/"
},
"basePublicUrl": "http://storage.bloatware.org:1229",
@scripting
scripting / helloWorldMediumEditor.html
Last active August 29, 2015 14:25
A simple Hello World app for medium-editor, https://github.com/yabwe/medium-editor
<html>
<head>
<title>Hello World for medium-editor</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="http://fargo.io/code/jquery-1.9.1.min.js"></script>
<link href="http://fargo.io/code/bootstrap.css" rel="stylesheet">
<script src="http://fargo.io/code/bootstrap.min.js"></script>
@scripting
scripting / mediumTestBed.html
Created July 20, 2015 21:20
A place for me to test Medium-Editor, for possible inclusion in MyWord Editor. There's a link to a running version of the app in the comment thread, below.
<html>
<head>
<title>medium-editor test</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="http://fargo.io/code/jquery-1.9.1.min.js"></script>
<link href="http://fargo.io/code/bootstrap.css" rel="stylesheet">
<script src="http://fargo.io/code/bootstrap.min.js"></script>
@scripting
scripting / config.json
Last active August 29, 2015 14:25
The config.json file that makes discuss.userland.com URLs work once again.
{
"jsSiteRedirect":
"'http://static.userland.com/userLandDiscussArchive/msg' +
utils.padWithZeros (parsedUrl.pathname.split ('$') [1], 6) + '.html'"
}
@scripting
scripting / getdavewineropml.js
Created June 29, 2015 12:04
A PagePark page implemented in JavaScript that returns the JSON representation of an OPML outline. See the notes for v0.63 for more info.
var urlOpml = "http://davewiner.com/davewiner.opml";
opmlLib.readOpmlUrl (urlOpml, function (theOutline) {
httpResponse.writeHead (200, {"Content-Type": "application/json", "Access-Control-Allow-Origin": "*"});
httpResponse.end (utils.jsonStringify (theOutline));
});
@scripting
scripting / getjsonopml.js
Created June 27, 2015 14:13
A PagePark page implemented in JavaScript that returns the JSON representation of an OPML outline. See the notes for v0.63 for more info.
opmlLib.readOpmlUrl (parsedUrl.query.url, function (theOutline) {
httpResponse.writeHead (200, {"Content-Type": "application/json", "Access-Control-Allow-Origin": "*"});
httpResponse.end (utils.jsonStringify (theOutline));
});