This file contains hidden or 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
| class Post | |
| has_many :Comments | |
| end |
This file contains hidden or 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
| { | |
| "Teams": [ | |
| { | |
| "Name": "Patriots", | |
| "Players": [ | |
| {"Name": "Tom Brady"}, | |
| {"Name": "Rob Gronkowski"} | |
| ] | |
| }, | |
| { |
This file contains hidden or 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
| { | |
| "Teams": [ | |
| { "Name": "Patriots" }, | |
| { "Name": "49ers" } | |
| ], | |
| "Players": [ | |
| { | |
| "Name": "Tom Brady", | |
| "Has one Teams!Name": "Patriots", | |
| "Teams": { |
This file contains hidden or 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 ajax(method, url, body, params, cb) { | |
| var ia = document.createElement('iron-ajax'); | |
| ia.url = url; | |
| ia.method = method; | |
| var self = this; | |
| if (body) { | |
| var formData = new FormData(); | |
| if (body) { | |
| for (var param in body) { | |
| if (typeof body[param] == 'object') { |
This file contains hidden or 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
| module.exports.beforeRender = function(elem, data) { | |
| for (var i = 0; i < data.Sheet1.length; i++) { | |
| data.Sheet1[i].SoldTrue = (data.Sheet[i].SaleStatus && data.Sheet[i].SaleStatus.length); | |
| data.Sheet1[i].SoldFalse = ! data.Sheet1[i].SoldTrue; | |
| } | |
| } |
This file contains hidden or 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
| module.exports.beforeRender = function(elem, data) { | |
| console.log("Hi there, before render!"); | |
| data.Grouped = groupBy( | |
| data.Sheet1, | |
| function(item) { | |
| return item.Course; | |
| }, | |
| function(group) { |
This file contains hidden or 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 myFunction() { | |
| var AUTOINC_COLUMN = 0; | |
| var HEADER_ROW_COUNT = 1; | |
| var spreadsheet = SpreadsheetApp.getActiveSpreadsheet(); | |
| var worksheet = spreadsheet.getSheetByName("Sheet1"); | |
| var rows = worksheet.getDataRange().getNumRows(); | |
| var vals = worksheet.getSheetValues(1, 1, rows+1, 2); | |
This file contains hidden or 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
| { | |
| "Teams": [ | |
| { | |
| "Name": "Patriots", | |
| "Players": [ | |
| {"Name": "Tom Brady"}, | |
| {"Name": "Rob Gronkowski"} | |
| ] | |
| }, | |
| { |