View helloworld.js
var AWS = require ("aws-sdk");
var s3 = new AWS.S3 ();
const params = {
Bucket: "bloatware.org",
Key: "/testing/hello.txt",
Body: "Hello World",
ContentType: "text/plain",
ACL: "public-read"
};
s3.putObject (params, function (err, data) {
View permissions.json
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": ["s3:ListBucket"],
"Resource": ["arn:aws:s3:::bloatware.org"]
},
{
"Effect": "Allow",
View tweetsInMyRss.xml
<item>
<description>Instead of Trump growing to fill the presidency, he's shrinking the presidency to fit Trump.</description>
<pubDate>Wed, 28 Jun 2017 14:00:37 GMT</pubDate>
<link>http://scripting.com/2017/06/28.html#a100637</link>
<guid>http://scripting.com/2017/06/28.html#a100637</guid>
<source:outline created="Wed, 28 Jun 2017 14:00:37 GMT" type="tweet" tweetId="880063536352899074" tweetUserName="davewiner" permalink="http://scripting.com/2017/06/28.html#a100637" text="Instead of Trump growing to fill the presidency, he's shrinking the presidency to fit Trump." />
</item>
<item>
View hello.js
const githubpub = require ("githubpub");
var config = {
port: 5376,
domains: {
"githubpub.scripting.com": {
username: "scripting",
repository: "Scripting-News",
path: "githubpub"
}
View getRepositoryDirectory.html
<html>
<head>
<title>GitHub API: Get repo directory</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>
<link href="http://fargo.io/code/ubuntuFont.css" rel="stylesheet" type="text/css">
<script>
View getRepositoryDirectory.html
<html>
<head>
<title>GitHub API: Get repo directory</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>
<link href="http://fargo.io/code/ubuntuFont.css" rel="stylesheet" type="text/css">
<script>
View mylist.opml
<?xml version="1.0"?>
<opml version="2.0">
<head>
<title>mylist.opml</title>
</head>
<body>
<outline text="Feeds" type="include" url="https://dl.dropboxusercontent.com/u/36518280/river5/includedTestList2.opml"/>
</body>
</opml>
View radioLinkblog.json
{
"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",
View xmlToJson.js
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));
});
}
});
View river5socketdemo.html
<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">