Click here to Skip to main content
15,899,935 members

X2A coding - Professional Profile



Summary

    Blog RSS
-18
Authority
1
Debator
-1
Enquirer
4
Organiser
551
Participant
0
Author
0
Editor
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

 

Reputation

Weekly Data. Recent events may not appear immediately. For information on Reputation please see the FAQ.

Privileges

Members need to achieve at least one of the given member levels in the given reputation categories in order to perform a given action. For example, to store personal files in your account area you will need to achieve Platinum level in either the Author or Authority category. The "If Owner" column means that owners of an item automatically have the privilege. The member types column lists member types who gain the privilege regardless of their reputation level.

ActionAuthorAuthorityDebatorEditorEnquirerOrganiserParticipantIf OwnerMember Types
Have no restrictions on voting frequencysilversilversilversilver
Bypass spam checks when posting contentsilversilversilversilversilversilvergoldSubEditor, Mentor, Protector, Editor
Store personal files in your account areaplatinumplatinumSubEditor, Editor
Have live hyperlinks in your profilebronzebronzebronzebronzebronzebronzesilverSubEditor, Protector, Editor
Have the ability to include a biography in your profilebronzebronzebronzebronzebronzebronzesilverSubEditor, Protector, Editor
Edit a Question in Q&AsilversilversilversilverYesSubEditor, Protector, Editor
Edit an Answer in Q&AsilversilversilversilverYesSubEditor, Protector, Editor
Delete a Question in Q&AYesSubEditor, Protector, Editor
Delete an Answer in Q&AYesSubEditor, Protector, Editor
Report an ArticlesilversilversilversilverSubEditor, Mentor, Protector, Editor
Approve/Disapprove a pending ArticlegoldgoldgoldgoldSubEditor, Mentor, Protector, Editor
Edit other members' articlesSubEditor, Protector, Editor
Create an article without requiring moderationplatinumSubEditor, Mentor, Protector, Editor
Approve/Disapprove a pending QuestionProtector
Approve/Disapprove a pending AnswerProtector
Report a forum messagesilversilverbronzeProtector, Editor
Approve/Disapprove a pending Forum MessageProtector
Have the ability to send direct emails to members in the forumsProtector
Create a new tagsilversilversilversilver
Modify a tagsilversilversilversilver

Actions with a green tick can be performed by this member.


 
GeneralMy New App Pro Translator Pin
X2A coding25-May-18 4:16
professionalX2A coding25-May-18 4:16 

/**
* @OnlyCurrentDoc Limits the script to only accessing the current document.
*/

var DIALOG_TITLE = 'Example Dialog';
var SIDEBAR_TITLE = 'Example Sidebar';

/**
* Adds a custom menu with items to show the sidebar and dialog.
*
* @param {Object} e The event parameter for a simple onOpen trigger.
/
function onOpen(e) {
DocumentApp.getUi()
.createAddonMenu()
.addItem('Show sidebar', 'showSidebar')
.addItem('Show dialog', 'showDialog')
.addToUi();
}
function DocumentApp() {
}
function doGet() {
return HtmlService
.createTemplateFromFile(title)
.evaluate();
}
/*

* Runs when the add-on is installed; calls onOpen() to ensure menu creation and
* any other initializion work is done immediately.
*
* @param {Object} e The event parameter for a simple onInstall trigger.
/
function onInstall(e) {
onOpen(e);
}
/*

* Opens a sidebar. The sidebar structure is described in the Sidebar.html
* project file.
/
function showSidebar() {
var ui = HtmlService.createTemplateFromFile('Sidebar')
.evaluate()
.setTitle(SIDEBAR_TITLE)
.setSandboxMode(HtmlService.SandboxMode.IFRAME);
DocumentApp.getUi().showSidebar(ui);
}
/*

* Opens a dialog. The dialog structure is described in the Dialog.html
* project file.
/
function showDialog() {
var ui = HtmlService.createTemplateFromFile('Dialog')
.evaluate()
.setWidth(400)
.setHeight(150)
.setSandboxMode(HtmlService.SandboxMode.IFRAME);
DocumentApp.getUi().showModalDialog(ui, DIALOG_TITLE);
}
/*

* Returns the existing footer text (if any).
*
* @return {String} existing document footer text (as a plain string).
*/
function getFooterText() {
// Retrieve and return the information requested by the sidebar.
var footer = DocumentApp.getActiveDocument().getFooter();
if (footer == null) {
return '';
}
return footer.getText();
}

/**
* Replaces the current document footer with the given text.
*
* @param {String} footerText text collected from the client-side
* sidebar.
*/
function setFooterText(footerText) {
// Use data collected from sidebar to manipulate the document.
var footer = DocumentApp.getActiveDocument().getFooter();
if (footer == null) {
footer = DocumentApp.getActiveDocument().addFooter();
}
footer.setText(footerText);
}

/**
* Returns the document title.
*
* @return {String} the current document title.
*/
function getDocTitle() {
// Retrieve and return the information requested by the dialog.
return DocumentApp.getActiveDocument().getName();
}

/**
* Changes the document title.
*
* @param {String} title the new title to use for the document.
*/
function setDocTitle(title) {
// Use data collected from dialog to manipulate the document.
DocumentApp.getActiveDocument().setName(title);
}
function myFunction() {
}

function DocumentApp() {
}

function doGet() {
}
// Initialize
this.Error = null;
this.TranslationSpeechUrl = null;
this.TranslationTime = TimeSpan.Zero;
DateTime; tmStart = DateTime.Now;
string; translation = string.Empty;
try {
    // Download translation
    string; url = string.Format ("<a href="https://translate.googleapis.com/translate_a/single?client=gtx&sl={0}&tl={1}&dt=t&q={2}">https://translate.googleapis.com/translate_a/single?client=gtx&sl={0}&tl={1}&dt=t&q={2}</a>",
                                Translator.LanguageEnumToIdentifier (sourceLanguage),
                                Translator.LanguageEnumToIdentifier (targetLanguage),
                                HttpUtility.UrlEncode (sourceText));
    string; outputFile = Path.GetTempFileName();
    using (WebClient); wc = new (WebClient) {}}

            //Get Translated Text
            // Translation of single word
            // Translation of phrase
        // Get translated phrases

        // And translation speech URL

Meet Google Drive – One place for all your files[^]


-- modified 25-May-18 10:23am.

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.