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
{ | |
"idNextPost": 318, | |
"messages": [ | |
{ | |
"text": "<p>Please reload the page now if you have it loaded. Thanks! <img title='blush' alt='blush' class='emoji' src='http://fargo.io/code/emojify/images/emoji/blush.png' align='absmiddle' /></p>", | |
"authorname": "Dave Winer", | |
"screenname": "davewiner", | |
"urlIcon": "http://pbs.twimg.com/profile_images/716686126254321664/v3citfg4_normal.jpg", | |
"when": "2016-09-26T22:20:41.657Z", | |
"id": 0 |
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": 1999, | |
"websocketPort": 2000, | |
"myDomain": "1999.bigbloat.io:1999", | |
"where": { | |
"flUseLocalFilesystem": true, | |
"publicPath": "/Volumes/Broadway/1999/", | |
"privatePath": "privateFiles/" | |
}, | |
"twitterConsumerKey": "anm3unkb1mof7isav0bkxigby", |
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>Hello World for Slick</title> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<!-- A simple hello world app for https://github.com/kenwheeler/slick --> | |
<script src="http://fargo.io/code/jquery-1.9.1.min.js"></script> | |
<link href="http://fargo.io/code/ubuntuFont.css" rel="stylesheet" type="text/css"> |
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
app.on ("ready", function () { | |
var nativeIcon = NativeImage.createFromPath (__dirname + "/" + "pork.png"); | |
mainWindow = new BrowserWindow ({ | |
width: 1100, | |
height: 1000, | |
icon: nativeIcon | |
}); | |
mainWindow.loadURL('file://' + __dirname + '/index.html'); | |
}); |
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
app.on ("ready", function () { | |
mainWindow = new BrowserWindow ({ | |
width: 1100, | |
height: 1000, | |
icon: __dirname + "/" + "pork.png" | |
}); | |
mainWindow.loadURL('file://' + __dirname + '/index.html'); | |
}); |
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
<?xml version="1.0"?> | |
<!-- RSS generated by OPML Editor v0.75 on 4/17/17; 11:19:01 PM --> | |
<rss version="2.0"> | |
<channel> | |
<title>Test podcast feed</title> | |
<link>http://scripting.com/</link> | |
<description>This feed contains one item that has an enclosure. I have a script that rebuilds the feed with a fresh url on the enclosure making it useful for testing podcatcher apps.</description> | |
<language>en-US</language> | |
<lastBuildDate>Tue, 18 Apr 2017 03:19:01 GMT</lastBuildDate> | |
<docs>http://cyber.law.harvard.edu/rss/rss.html</docs> |
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
//two globals are set up by River5 for buildRiver callbacks, fname and jsontext. | |
//this example creates a copy of the river in a folder on another disk, named Montreal. | |
var f = "/Volumes/Montreal/tmp/rivers/" + fname; | |
fsSureFilePath (f, function () { | |
fs.writeFile (f, jsontext); | |
}); | |
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>River5 websockets demo</title> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<!-- app is live here: http://rss2.io/code/socketdemo/ --> | |
<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
const xml2js = require ("xml2js"), request = require ("request"); | |
request ("http://scripting.com/rss.xml", function (error, response, data) { | |
if (!error && (response.statusCode == 200)) { | |
xml2js.parseString (data, function (err, result) { | |
console.log (JSON.stringify (result, undefined, 4)); | |
}); | |
} | |
}); |
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": "Dave Winer", | |
"link": "http://scripting.com/", | |
"description": "I started up blogging, podcasting, RSS 2.0, and software for all of that. I love outliners, JavaScript. I love to make new media. Read my blog! :-)", | |
"language": "en-us", | |
"generator": "Radio3 v0.76d", | |
"docs": "http://cyber.law.harvard.edu/rss/rss.html", | |
"twitterScreenName": "davewiner", | |
"maxFeedItems": 25, | |
"appDomain": "radio3.io", |