View gist:6165085
This file contains 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> | |
<%systemstyles%> | |
<script> | |
function showViewTextDialog () { | |
$("#idViewTextDialog").modal ("show"); | |
}; | |
</script> | |
<style> | |
body { |
View wordnikFromJavaScript
This file contains 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>Wordnik demo from JavaScript</title> | |
<script src="http://static.smallpicture.com/bootstrap/js/jquery-1.9.1.min.js"></script> | |
<script> | |
var baseUrl = "http://api.wordnik.com/v4/word.json/"; | |
var apiKey = "a2a73e7b926c924fad7001ca3111acd55af2ffabf50eb4ae5"; //demo key from developer.wordnik.com | |
function getSynonyms (theWord, callback) { | |
var url = baseUrl + theWord + "/relatedWords?useCanonical=true&relationshipTypes=synonym&limitPerRelationshipType=100&api_key=" + apiKey; | |
var jxhr = $.ajax ({ |
View canvasImage
This file contains 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>Canvas Lab</title> | |
<style> | |
body { | |
background-color: whitesmoke; | |
} | |
.divPage { | |
margin-top: 125px; |
View serverCodeForTwitter
This file contains 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
//see this blog post for background -- http://scripting.com/2014/07/01/twitterApiUpdatewithmedia.html | |
var buffer = new Buffer (body, "base64"); | |
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 |
View clientCodeForTwitter
This file contains 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)); | |
} |
View correctedStatusMedia
This file contains 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 |
View RiverReader
This file contains 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; |
View gist:828144d4a9dda203164c
This file contains 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)); | |
}); | |
} |
View gist:f289b2d36316964bf399
This file contains 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", |
View gist:24a97569e8103799d942
This file contains 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, |
OlderNewer