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
| https://help.shopify.com/en/api/custom-storefronts/storefront-api/reference/object | |
| Create New Checkout -> Add Items to Checkout -> Generate public checkout URL, save to app user in DB | |
| When user is ready to pay, access payment logic from DB (somm vs client credit cards, etc), | |
| use stripe token, create charge | |
| create order in Shopify and set order as paid, save order to user in DB | |
| delete carts after certain time period, free up inventory |
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
| https://apps.shopify.com/excel-export-import | |
| Schedule imports from Google Sheets |
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
| https://developers.google.com/sheets/api/samples/writing | |
| { | |
| "range": "Sheet1!A1:D5", | |
| "majorDimension": "ROWS", | |
| "values": [ | |
| ["Item", "Cost", "Stocked", "Ship Date"], | |
| ["Wheel", "$20.50", "4", "3/1/2016"], | |
| ["Door", "$15", "2", "3/15/2016"], | |
| ["Engine", "$100", "1", "30/20/2016"], |
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
| { | |
| shop { | |
| products(first: 20 query: "2015") { | |
| edges { | |
| node { | |
| id | |
| handle | |
| tags | |
| vendor | |
| metafields(first: 10) { |
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
| https://medium.com/@bartwijnants/using-prettier-and-husky-to-make-your-commits-save-2960f55cd351 |
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
| 'use strict'; | |
| function downloadFromService1(){ | |
| setTimeout(function(){ console.log("Hello 1"); }, 6000); | |
| } | |
| function downloadFromService2(){ | |
| setTimeout(function(){ console.log("Hello 2"); }, 12000); | |
| } |
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
| Rspec Notes: | |
| -Add tests before features | |
| rails g rspec:install | |
| rails g integration_test <testname> | |
| rake spec:requests |
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
| # card.rb | |
| class Card | |
| attr_reader :term, :definition | |
| def initialize(term, definition) | |
| @term = term | |
| @definition = definition | |
| 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
| # Your code here |
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
| #People | |
| # class Database | |
| # | |
| # attr_accessor :records | |
| # | |
| # @@max_record_id = 0 | |
| # @@records = [] | |
| # | |
| # def next_id |
NewerOlder