Skip to content

Instantly share code, notes, and snippets.

View pangeaware's full-sized avatar

Chris Smith pangeaware

  • San Diego, CA
View GitHub Profile
@pangeaware
pangeaware / app.js
Created January 22, 2021 20:35
Partial solution to menu item options
const data = {"itemHeader":{"id":"208561505","name":"1/2 Bistro Steak Sandwich","imgUrl":"","description":"carved steak with dijonnaise, basil pesto, caramelized onion jam, roasted tomatoes, arugula, lemon squeeze (250 cal) on toasted sesame roll (150 cal)\r\n\r\ncan be requested gluten free by selecting the gf bread option\r\n\r\nPlease note: we are now offering two different deli sizes with your half sandwich. Looking to get the same deli size you've always gotten? Make sure to select the medium size","displayString":"","unitAmount":0,"currency":"USD","decimalPlaces":2,"specialInstructionsMaxLength":0,"__typename":"ItemHeader"},"optionLists":[{"type":"extra_option","id":"416748856","name":"Choose the size of your side","subtitle":"Select 1","selectionNode":"singe_select","minNumOptions":1,"maxNumOptions":1,"minAggregateOptionsQuantity":null,"maxAggregateOptionsQuantity":null,"minOptionChoiceQuantity":null,"maxOptionChoiceQuantity":null,"numFreeOptions":0,"isOptional":false,"options":[{"id":"2332496096","nam
@pangeaware
pangeaware / linkedinLogin.jsx
Created March 30, 2016 23:58
React Component Implementing the Linkedin Javascript SDK
var React = require('react');
var LinkedinLogin = React.createClass({
componentDidMount: function() {
var liRoot = document.createElement('div');
liRoot.id = 'linkedin-root';
document.body.appendChild(liRoot);