This is a sample script for downloading files from Google Drive under no authorization using browser. By using this sample, you can make other users download files from your Google Drive. Even if the other users are not Google users, they can download the files.
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
| =ArrayFormula( | |
| VLOOKUP( | |
| CEILING(ROW(OFFSET(INDIRECT("A1"),,,COUNTA(A2:A)*COUNTA(B2:B)))/COUNTA(B2:B)) , | |
| {ROW(A2:A)-row(A1),A2:A} , 2, ) | |
| ) |
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
| /** | |
| * Moves row of data to another spreadsheet based on criteria in column 6 to sheet with same name as the value in column 4. | |
| */ | |
| function onEdit(e) { | |
| // see Sheet event objects docs | |
| // https://developers.google.com/apps-script/guides/triggers/events#google_sheets_events | |
| var ss = e.source; | |
| var s = ss.getActiveSheet(); | |
| var r = e.range; |
This is a sample script for uploading local file to Google Drive without the authorization using HTML form. A selected file in your local PC using HTML form is uploaded to Google Drive and saved to Google Drive.
When you use this, at first, please deploy Web Apps. The script is doPost() of following scripts.
function doPost(e) {
var data = Utilities.base64Decode(e.parameters.data);This is a sample script for downloading a file using a button of dialog box on Google Docs (Spreadsheet, Document and Slides).
Please use this sample script at script editor on Google Docs (Spreadsheet, Document and Slides). And please set file ID in the script.
The flow of this sample script is as follows.
- Run
dialog().
- Open a dialog.
Простой объект для генерации модальных окон взамен Browser.msgBox
Пример Меню - To Do
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 onEdit(event) | |
| { | |
| var maxRows = false; | |
| // Change Settings: | |
| //-------------------------------------------------------------------------------------- | |
| var TargetSheet = 'Main'; // name of sheet with data validation | |
| var LogSheet = 'Data1'; // name of sheet with data | |
| var NumOfLevels = 4; // number of levels of data validation | |
| var lcol = 2; // number of column where validation starts; A = 1, B = 2, etc. |
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
| import csv | |
| import os | |
| from sumy.parsers.html import HtmlParser | |
| from sumy.parsers.plaintext import PlaintextParser | |
| from sumy.nlp.tokenizers import Tokenizer | |
| from sumy.summarizers.lsa import LsaSummarizer as Lsa | |
| from sumy.summarizers.luhn import LuhnSummarizer as Luhn | |
| from sumy.summarizers.text_rank import TextRankSummarizer as TxtRank | |
| from sumy.summarizers.lex_rank import LexRankSummarizer as LexRank | |
| from sumy.summarizers.sum_basic import SumBasicSummarizer as SumBasic |
