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
| body { | |
| background: #ecf1f1; | |
| font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; | |
| } | |
| button { | |
| font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; | |
| } | |
| ol { |
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
| body { | |
| background: #ecf1f1; | |
| font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; | |
| } | |
| button { | |
| font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; | |
| } | |
| ol { |
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
| body { | |
| background: #ecf1f1; | |
| font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; | |
| } | |
| button { | |
| font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; | |
| } | |
| ol { |
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
| def create | |
| if params[:item_share] && params[:receiver] && params[:email] | |
| user = User.find_by_email(params[:item_share][:receiver][:email]) | |
| @item = Item.create!(params[:item_share][:item]) | |
| @item_share = current_user.item_shares_given.build(:item_id => @item.id, | |
| :share_target_user_id => user.id, | |
| :note => params[:item_share][:note]) | |
| if @item_share.save | |
| flash[:success] = "Item_share created!" | |
| redirect_to root_path |
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 sendEmails() { | |
| var doc = SpreadsheetApp.getActiveSpreadsheet(); | |
| var sheet = doc.getSheets()[0]; // <--- First sheet has index 0 | |
| //Browser.msgBox(sheet.getName()); | |
| var startRow = sheet.getLastRow(); // First row of data to process | |
| //Browser.msgBox(startRow); | |
| // Fetch the range of cells A2:B3 | |
| //getRange looks for this order of parameters: Starting Row, Leftmost Column, Number of Rows to look at, number of columns to look at | |
| var dataRange = sheet.getRange(startRow, 4, 1, 11) ; | |
| // Fetch values for each row in the Range. |
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 Bucket(name) { | |
| this._name = name; | |
| } | |
| Bucket.prototype.toString = function () { | |
| return this._name; | |
| }; | |
| Bucket.MORNING = new Bucket('morning'); | |
| Bucket.AFTERNOON = new Bucket('afternoon'); |
NewerOlder