Skip to content

Instantly share code, notes, and snippets.

View kexline4710's full-sized avatar

Kathryn Exline kexline4710

  • Exline Consulting
  • Columbus, OH
View GitHub Profile
module.exports = {
meta: {
type: "suggestion",
docs: {
description: "Enforce Brandon and Ashlynn as unified function",
recommended: true,
url: "https://eslint.org/docs/rules/together-forever"
},
schema: []
},
@kexline4710
kexline4710 / gist:0fdf3ed9ab578c06fbbd
Last active December 8, 2015 22:42
When you need to delete a bunch of cards in one swoop. I use this in Google script.
TRELLO_API_KEY = 'trelloUserToken';
TRELLO_API_TOKEN = 'trelloAppToken';
LIST_ID_TO_DELETE = 'trelloListId';
function trelloRequest(url, options) {
var authUrl = url + '?key=' + TRELLO_API_KEY + '&token=' + TRELLO_API_TOKEN;
var response = UrlFetchApp.fetch(authUrl, options);
var responseText = response.getContentText();
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
%span.btn-group.add-item-expanded
= link_to 'View', account_select_event_item_path(item.account, item.select_event, item), method: :get, :class => "btn fooda-white"
= form_for [:checkout, ], url: checkout_items_path, method: :post do |f|
= f.hidden_field :parent_id, value: @menu_page.select_event.id
= f.hidden_field :parent_type, value: 'SelectEvent'
= f.hidden_field :selection, value: item.inventory_item
= f.submit 'Buy Now', :class => "btn fooda-blue"

Select Order Purchasing Flow

SHOW/UPDATE PAGE

Technical Info Needed

  • (TBD)

To Do

  • Create basic wireframe for page with div set aside for upsell items (include link back to menu page)
  • Display relevenat item's information (name, vendor, description, dietary restrictions)
  • Stub out basic form for inventory item (to go to cart/order?)
# in vendor model
def yelp_data_available?
yelp_id && rating_image_url && review_count
end
# in biography view
- if vendor.yelp_data_available?
require 'spec_helper'
describe Select::SelectOrdersController do
let(:user) { create(:user) }
before do
request.env['HTTPS'] = 'on'
request.env['HTTP_REFERER'] = ':back'
<head>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
/* The CSS Rule*/
selector {
property: value;
}
/* CSS ID selector */
/* <p id="footer">Copyright 2011</p> */
#footer {
property: value;
}