Skip to content

Instantly share code, notes, and snippets.

@stevemar
Last active September 28, 2018 02:13
Show Gist options
  • Save stevemar/cb025c9aa28864ffd2d7772b113da263 to your computer and use it in GitHub Desktop.
Save stevemar/cb025c9aa28864ffd2d7772b113da263 to your computer and use it in GitHub Desktop.

Testing

This is a section


Announced today at #OSCON - Scalable distributed #PyTorch training using Horovod in FfDL!https://t.co/yQo0Mt9CWr.
Thanks @@alsrgv for help and everyone for coming and listening to exciting space of open source #DeepLearning platform space @OSCON pic.twitter.com/4zw0VJSNt2

— Animesh Singh (@AnimeshSingh) July 18, 2018
<script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
const languageTranslatorUsername = "32e86ec8-723c-4008-9794-403db5819c00";
const languageTranslatorPassword = "4oKBNnbomj8P";
const toneAnalyzerUsername = "36d3f118-bcdb-436d-91f9-c87a686dba02";
const toneAnalyzerPassword = "PSURBoojx7P2";

var callToneAnalyzer = function (word) {
    //Authorization needs to be in base64
    var encodedData = window.btoa(toneAnalyzerUsername + ":" + toneAnalyzerPassword);
    var toneAuth = "Basic " + encodedData;
    var textContent = String(word.selectionText);
    var inputContent = textContent.replace(/%20/g, "");
    var xhr = new XMLHttpRequest();
    var toneURL = "https://gateway.watsonplatform.net/tone-analyzer/api/v3/tone?sentences=true&version=2016-05-19&text=\'";


const languageTranslatorUsername = "32e86ec8-723c-4008-9794-403db5819c00";
const languageTranslatorPassword = "4oKBNnbomj8P";
const toneAnalyzerUsername = "36d3f118-bcdb-436d-91f9-c87a686dba02";
const toneAnalyzerPassword = "PSURBoojx7P2";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment