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 urlWebHook = "https://hooks.slack.com/services/abcdef"; //the URL you get on your "incoming web hooks" page. | |
function sendToSlack (s, theUsername, theIconUrl, theIconEmoji, theChannel) { | |
var payload = { | |
text: s | |
}; | |
if (theUsername !== undefined) { | |
payload.username = theUsername; |
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.40", myProductName = "testRssCloud", myPort = 2222, myDomain = "yourserver.io"; | |
//Test app for Andrew Shell's rssCloud server | |
//https://github.com/andrewshell/rsscloud-server | |
var request = require ("request"); | |
var http = require ("http"); | |
var urlpack = require ("url"); | |
var dns = require ("dns"); | |
var qs = require ("querystring"); |
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 now = new Date (); | |
if (localStorage.feeds === undefined) { | |
localStorage.feeds = new Object (); | |
} | |
if (localStorage.feeds [urlfeed] === undefined) { | |
localStorage.feeds [urlfeed] = { | |
ctAdds: 0, | |
whenFirstAdd: now | |
}; | |
} |
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
{ | |
"feeds": { | |
"http://www.nytimes.com/services/xml/rss/nyt/Travel.xml": { | |
"ctAdds": 1, | |
"whenFirstAdd": "2015-06-21T03:02:55.237Z", | |
"whenLastAdd": "2015-06-21T03:02:55.237Z", | |
"stories": [ | |
"Frugal Traveler: Exploring Franche-Comté, France’s Well-Kept Secret" | |
] | |
}, |
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
opmlLib.readOpmlUrl (parsedUrl.query.url, function (theOutline) { | |
httpResponse.writeHead (200, {"Content-Type": "application/json", "Access-Control-Allow-Origin": "*"}); | |
httpResponse.end (utils.jsonStringify (theOutline)); | |
}); |
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 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)); | |
}); |
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
{ | |
"jsSiteRedirect": | |
"'http://static.userland.com/userLandDiscussArchive/msg' + | |
utils.padWithZeros (parsedUrl.pathname.split ('$') [1], 6) + '.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
<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> |
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 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> |
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
{ | |
"enabled": true, | |
"myPort": 1229, | |
"myDomain": "storage.bloatware.org:1229", | |
"where": { | |
"flUseLocalFilesystem": true, | |
"publicPath": "mypublicfiles/", | |
"privatePath": "myprivatefiles/" | |
}, | |
"basePublicUrl": "http://storage.bloatware.org:1229", |