Skip to content

Instantly share code, notes, and snippets.

View nscricco's full-sized avatar

Nicholas Scricco nscricco

  • San Francisco, CA
View GitHub Profile
/**
* 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();
class Vehicle
@@WHEELS = 4
attr_reader :speeding_tickets
def initialize(args)
@color = args[:color]
@speeding_tickets = 0
end
def drive