Skip to content

Commit

Permalink
Merge pull request #14 from ndneighbor/master
Browse files Browse the repository at this point in the history
Its really great
  • Loading branch information
mjwrites authored Oct 15, 2017
2 parents 675a09d + 335c569 commit fbc90f7
Show file tree
Hide file tree
Showing 647 changed files with 94,795 additions and 16 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ These instructions will get you a copy of the project up and running on your loc
You will need to install your preferred text editor.
<br>*Cafecito is optimized for Atom and VS Code*</br>
* [Atom](https://atom.io/) - Github's open source text editor.
* [Cafecito Atom Package](https://github.com/ndneighbor/cafecito-atom) - The language pack that allows syntax highlighting and IDE like transpiler running
* [VS Code](https://code.visualstudio.com/) - Microsoft's streamlined code editor.

## Language Support
Expand Down
1 change: 1 addition & 0 deletions cafe-atom
Submodule cafe-atom added at 1a764b
4 changes: 4 additions & 0 deletions cafe-translate/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"eslint.enable": false,
"tslint.enable": false
}
47 changes: 47 additions & 0 deletions cafe-translate/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
var myArgs = require('optimist').argv,
help = 'Input what you want to translate';
var MsTranslator = require('mstranslator');
var request = require("request");
var body;

var client = new MsTranslator({
api_key: "d2cad78206ae43ac9a179ae4315170f3"
}, true);

if ((myArgs.h)||(myArgs.help)) {
console.log(help);
process.exit(0);
}

switch (myArgs._[0]) {
case 'translate':
break;
default:

}

console.log('myArgs: ', myArgs);





var web = request({
uri: "https://docs.oracle.com/javase/tutorial/",
}, function(error, response, data) {
body = data;

var params = {
text: myArgs._[1]
, from: 'en'
, to: 'es'
, contentType: 'text/html'
};
//console.log(JSON.stringify(body));
// Don't worry about access token, it will be auto-generated if needed.
client.translate(params, function(err, data) {
console.log(data);
});


});
1 change: 1 addition & 0 deletions cafe-translate/node_modules/.bin/sshpk-conv

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions cafe-translate/node_modules/.bin/sshpk-sign

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions cafe-translate/node_modules/.bin/sshpk-verify

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions cafe-translate/node_modules/.bin/uuid

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions cafe-translate/node_modules/ajv/.tonic_example.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 22 additions & 0 deletions cafe-translate/node_modules/ajv/LICENSE

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit fbc90f7

Please sign in to comment.