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 requestSettings = { | |
| method: 'GET', | |
| url: theEnclosure.url, | |
| encoding: null | |
| }; | |
| request (requestSettings, function (error, response, body) { | |
| if (!error && (response.statusCode == 200)) { | |
| fs.writeFile ("podcast.mp3", body, function (err) { | |
| console.log (body.length + " bytes written to file."); |
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
| I'm using the Mac GitHub client, and these weird files keep showing up and I have to delete them before anything will work. | |
| Here's a screen shot. | |
| http://scripting.com/2015/03/21/koreanchars.png | |
| As far as I know I'm not doing anything to create them. | |
| Any clues would be much appreciated. |
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
| function opGetBarCursor () { //11/12/14 by DW | |
| return ($(getActiveOutliner ()).concord ().op.getCursorRef ()); | |
| } | |
| function dateToNumber (theDate) { //2/15/15 by DW | |
| return (Number (new Date (theDate))); | |
| } | |
| function opGetMywordJstruct (theNode) { //2/15/15 by DW | |
| if (theNode == undefined) { | |
| theNode = opGetBarCursor (); | |
| } |
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
| function xmlVisit (adrx, callback, level, path) { | |
| if (level === undefined) { | |
| level = 0; | |
| } | |
| if (path === undefined) { | |
| path = ""; | |
| } | |
| $(adrx).children ("outline").each (function () { | |
| var flvisitsubs = true, name = xmlGetNodeName (this); |
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
| httpReadUrl ("http://scripting.com/misc/uppertext.txt", function (s) { | |
| httpReturn (s.toUpperCase (), "text/plain"); | |
| }); | |
| undefined; //return undefined so PagePark knows not to return a value |
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
| function readOpml (urloutline, callback) { | |
| var outlineArray = new Array (); | |
| var req = request (urloutline); | |
| var opmlparser = new opmlParser (); | |
| req.on ("response", function (res) { | |
| var stream = this; | |
| if (res.statusCode == 200) { | |
| stream.pipe (opmlparser); | |
| } |
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
| on buildLiveblogOpml () { | |
| «Changes | |
| «1/30/15; 12:19:27 PM by DW | |
| «Created. | |
| local (jsontext = tcp.httpreadurl ("http://liveblog.co/prefs/userwhitelist.json"), jstruct); | |
| json.compile (jsontext, @jstruct); | |
| «scratchpad.jstruct = jstruct | |
| local (xstruct = nodeEditorSuite.data.opmlShellStruct, now = clock.now ()); | |
| local (adrbody = xml.opml.getBodyAddress (@xstruct), adritem, name, i); |
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
| { | |
| "urlSiteRedirect": "http://nodestorage.io" | |
| } |
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
| { | |
| "folder": "feeds/", | |
| "items": [ | |
| { | |
| "username": "Circa", | |
| "feedname": "circa.xml" | |
| }, | |
| { | |
| "username": "reportedly", | |
| "feedname": "reportedly.xml" |
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 s = "<ul>"; | |
| for (var i = 1; i <= 10; i++) { | |
| s += "<li>" + i + "</li>"; | |
| } | |
| s += "</ul>"; | |
| s; |