Skip to content

Instantly share code, notes, and snippets.

/**
* Retrieves all the rows in the active spreadsheet that contain data and logs the
* values for each row.
* For more information on using the Spreadsheet API, see
* https://developers.google.com/apps-script/service_spreadsheet
*/
function readRows() {
var sheet = SpreadsheetApp.getActiveSheet();
var rows = sheet.getDataRange();
var numRows = rows.getNumRows();
anonymous
anonymous / serve_https.py
Created February 10, 2018 16:31
Python script to serve an arbitrary directory over HTTPS
#!/usr/bin/env python
"""
This script can be used to serve an arbitrary directory over HTTPS.
It supports autogenerating a self-signed certificate via openssl.
Basic Usage: python serve_https.py <directory>
See full options via: python serve_https.py -h
"""
from __future__ import absolute_import, division, print_function
import argparse