This file contains 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 assignEditUrls() { | |
// Function to add edit form link for each response recorded in sheets. Will append for new responses. | |
var formUrl = SpreadsheetApp.getActiveSpreadsheet().getFormUrl(); | |
var form = FormApp.openByUrl(formUrl); | |
// Provide the sheet name where Google Form responses are being recorded | |
var sheet = SpreadsheetApp.getActiveSpreadsheet().getSheetByName('Form Responses 1'); | |
var data = sheet.getDataRange().getValues(); | |
// Identifying existing edit form url column - 'editFormURL' - if exists then add edit links this column, else add a new column | |
// Assuming first row contains headers | |
var findCol = sheet.getRange(1, 1, 1, sheet.getLastColumn()).createTextFinder('editFormURL').matchEntireCell(true).findNext(); |
This file contains 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
from setuptools import setup, find_packages | |
setup( | |
#this will be the package name you will see, e.g. the output of 'conda list' in anaconda prompt | |
name = '<some name of the distribution>', | |
#some version number you may wish to add - increment this after every update | |
version='1.0', | |
# Use one of the below approach to define package and/or module names: | |
This file contains 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
require(caTools) | |
require(digest) | |
require(httr) | |
require(jsonlite) | |
#' Build API signature for logging to Azure log analytics | |
#' | |
#' Azure log analytics HTTP REST API documentation for Python is followed to | |
#' create the R version of it. Python version of this function is described | |
#' at \url{https://docs.microsoft.com/en-us/azure/azure-monitor/logs/data-collector-api#python-3-sample} |
This file contains 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
require(logger) | |
require(utils) | |
#' Logging related functions | |
#' | |
#' Logger function defined which are created on top of | |
#' \code{\link[logger]{log_level}} - | |
#' which is part of another package \code{logger}. Additional | |
#' capabilities have been added to those functions which enables this function | |
#' to be able to send logs directly to the Azure log analytics workspace, and |