Skip to content

Instantly share code, notes, and snippets.

View jr-grenoble's full-sized avatar

Jean-Rene Bouvier jr-grenoble

View GitHub Profile
@jr-grenoble
jr-grenoble / exportSpreadsheet.gs
Last active April 2, 2023 10:29 — forked from Spencer-Easton/exportSpreadsheet.gs
Example on how to export a Google sheet to various formats, includes most PDF options
function exportSpreadsheet() {
//All requests must include id in the path and a format parameter
//https://docs.google.com/spreadsheets/d/{SpreadsheetId}/export
//FORMATS WITH NO ADDITIONAL OPTIONS
//format=xlsx //excel
//format=ods //Open Document Spreadsheet
//format=zip //html zipped
# Astyle options (used by /usr/local/bin/beautify)
#
# options are described in: http://astyle.sourceforge.net/astyle.html#_Other_Options
#
# This file is linked to .astylerc in $HOME and astyle.rc in $HOME/.atom
#
--style=banner # -A6 Ratliff style
--attach-closing-while # -xV terminate do while loops on the brace
--indent-modifiers # -xG half indent public/protected/private modifiers in C++
--indent-namespaces # -N indent content of C++ namespaces