Skip to content

Instantly share code, notes, and snippets.

View bdkaat's full-sized avatar

Ben Kaat bdkaat

View GitHub Profile
@bdkaat
bdkaat / Fibonacci
Created May 24, 2015 02:37
Function for displaying Fibonacci Sequence to desired amout of places
var Fibonacci = function(number) {
var a = 1, b = 1, c = 2;
console.log(a);
console.log(b);
console.log(c);
for(var i = 2; i <= number; i++) {
c = b + c;
a = b;
b = c - b;
console.log(c);
/**
* 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();