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 = ""; | |
| for (var i = 1; i < 1000; i++) { | |
| s += i + "\r\n"; | |
| } | |
| s; |
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>View Linkblog</title> | |
| <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <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 River</title> | |
| <!-- | |
| The Hello World of Rivers | |
| https://github.com/scripting/river5/blob/master/docs/HELLOWORLD.md | |
| --> |
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" encoding="UTF-8"?> | |
| <CORSConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/"> | |
| <CORSRule> | |
| <AllowedOrigin>*</AllowedOrigin> | |
| <AllowedMethod>GET</AllowedMethod> | |
| <MaxAgeSeconds>3000</MaxAgeSeconds> | |
| <AllowedHeader>*</AllowedHeader> | |
| </CORSRule> | |
| </CORSConfiguration> |
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
| { | |
| "created_at": "Fri Sep 19 12:20:23 +0000 2014", | |
| "id": 512939257850511360, | |
| "id_str": "512939257850511360", | |
| "text": "\"I never used the Blackberry again.\" https://t.co/CYsbbBDtOh", | |
| "source": "<a href=\"http://radio3.io/\" rel=\"nofollow\">radio3.io</a>", | |
| "truncated": false, | |
| "in_reply_to_status_id": null, | |
| "in_reply_to_status_id_str": null, | |
| "in_reply_to_user_id": null, |
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
| { | |
| "guid": { | |
| "flPermalink": true, | |
| "value": "http://thefuturebuzz.com/2013/08/15/the-slow-inevitable-death-of-cable-tv/" | |
| }, | |
| "text": "The Slow, Inevitable Death Of Cable TV.", | |
| "title": "", | |
| "link": "http://thefuturebuzz.com/2013/08/15/the-slow-inevitable-death-of-cable-tv/", | |
| "linkShort": "http://bit.ly/1q1p56Y", | |
| "whenLastEdit": "2014-09-13T19:35:48.808Z", |
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 fbUpdatePost (idPost, thePostText) { | |
| FB.api (idPost, "post", {message: thePostText}, function (response) { | |
| console.log ("fbUpdatePost: response == " + JSON.stringify (response, 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
| <html> | |
| <head> | |
| <title>Minimal River Reader</title> | |
| <script src="http://fargo.io/code/jquery-1.9.1.min.js"></script> | |
| </head> | |
| <body> | |
| <script> | |
| var theRiver; | |
| function onGetRiverStream (updatedFeeds) { | |
| theRiver = updatedFeeds; |
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
| //Goes with this blog post -- http://scripting.com/2014/07/01/twitterApiUpdatewithmedia.html#aIJWTS | |
| var params = { | |
| url: "https://api.twitter.com/1.1/statuses/update_with_media.json", | |
| oauth: { | |
| consumer_key: process.env.twitterConsumerKey, | |
| consumer_secret: process.env.twitterConsumerSecret, | |
| token: parsedUrl.query.oauth_token, | |
| token_secret: parsedUrl.query.oauth_token_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
| //referenced in this blog post -- http://scripting.com/2014/07/01/twitterApiUpdatewithmedia.html | |
| function tweetImage (status) { | |
| var theCanvas = document.getElementById ("idCanvas"); | |
| var urlImage = theCanvas.toDataURL (); | |
| var imgType = "image/png"; | |
| function encode (s) { | |
| return (encodeURIComponent (s)); | |
| } |