Skip to content

Instantly share code, notes, and snippets.

View amckemie's full-sized avatar

Ashley McKemie amckemie

View GitHub Profile
@amckemie
amckemie / create_channel_config_meta
Last active April 2, 2021 17:51
Create Channel with config_meta
For multi-storefront management within the BigCommerce control panel, we need to create Channels that include config_meta, which enables the Wordpress channel in Channel Manager to 1) include a link within Channel Manager to the app and 2) enables native in-BC navigation
POST /v3/channels
{
"data": {
"name": "<Wordpress Channel Name>",
"platform": "wordpress",
"type": "storefront",
"external_id": "", // optional
@amckemie
amckemie / get_store_features
Created April 2, 2021 16:56
Checking for MSF being enabled on BC Store
GET /v2/store
Example Response:
{
"id": "abc123",
"domain": "my-awesome.store",
"secure_url": "https://my-awesome.stor",
"control_panel_base_url": "https://store-{store_hash}.mybigcommerce.com",
"status": "live",

Keybase proof

I hereby claim:

  • I am amckemie on github.
  • I am amckemie (https://keybase.io/amckemie) on keybase.
  • I have a public key ASDoXrZV6p6RAzAkgVUJG3pjnQ1XLYReUxqUzKoZi0YHwgo

To claim this, I am signing this object:

@amckemie
amckemie / binary_search_tree.rb
Created May 29, 2014 00:59
Binary_Search_Tree
class Node
attr_accessor :left_child, :right_child
attr_reader :value
def initialize(value)
@value = value
@left_child = nil
@right_child = nil
end
@amckemie
amckemie / BankingChallenge.rb
Last active August 29, 2015 14:01
Basic Banking Set Up
class Person
attr_reader :name
def initialize(name)
@name = name
end
end
class Bank
attr_reader :name
def initialize(name)
// Defines the node object
var Node = function(options) {
var options = options || {};
this.value = options.value;
this.parent = options.parent;
this.children = options.children || {};
this.stop = options.stop;
};
var Trie = function() {