Skip to content

Instantly share code, notes, and snippets.

View karen-white's full-sized avatar

Karen White karen-white

View GitHub Profile
@karen-white
karen-white / nlu.md
Created September 2, 2020 15:36
NLU training data for non-CDD assistant

intent:greet

  • hi
  • hey whatsup
  • hello morning are you there
  • hello
  • hi whatsup
  • hello greetings how is it going
  • good day how is it going
  • hey good afternoon whatsup
  • hi are you around
<?php
/*
Plugin Name: BC4WP > Customer Group Category Visibility
Description: Example plugin to hide BC categories based on customer group access
Author: BigCommerce
Version: 0.5
*/
// Set to -1 to not set a default customer group for visibility
// (using 0 will pull in the first customer group from BC)
<?php
/**
* Plugin Name: BC4WP: GeoIP Region Activation
* Plugin URI: http://www.bigcommerce.com/wordpress
* Description: Proof of concept for region activation by GeoIP
* Version: 0.5
* Author: BigCommerce
* Author URI: http://www.bigcommerce.com
*/
<script>
function generateMarkup() {
const confirmation = document.querySelector('.orderConfirmation-section:last-of-type');
confirmation.innerHTML += `<div id="shippingMap" >
<h2 id="mapHeader" style="margin-bottom: 15px;">We're sending your order to:</h3>
{{#if customer}}
<a href="/account.php?action=order_status" style="display:block;">Check my order status</a>
{{/if}}
<iframe id="map" width="450" height="300" ></iframe>
</div>`;
<script>
(function(win) {
'use strict';
var listeners = [],
doc = win.document,
MutationObserver = win.MutationObserver || win.WebKitMutationObserver,
observer;
function ready(selector, fn) {
{
"id": "cab646e2-e893-4328-a909-93fee3db682c",
"name": "BigCommerce Cart to Checkout to Order (Token) - TEMPLATE",
"values": [
{
"key": "my-email",
"value": "TODO",
"description": {
"content": "",
"type": "text/plain"
@karen-white
karen-white / category.js
Created May 7, 2019 17:53
Infinite Scroll on Cornerstone 1.18.0
import { hooks } from '@bigcommerce/stencil-utils';
import CatalogPage from './catalog';
import $ from 'jquery';
import FacetedSearch from './common/faceted-search';
import InfiniteScroll from 'infinite-scroll';
export default class Category extends CatalogPage {
loaded() {
function infiniteScroll() {
const elem = document.querySelector('.productGrid');
@karen-white
karen-white / checkout.js
Last active June 2, 2020 20:23
Use Mutation Observer to listen for the Billing step of checkout
<script>
(function(win) {
'use strict';
var listeners = [],
doc = win.document,
MutationObserver = win.MutationObserver || win.WebKitMutationObserver,
observer;
function ready(selector, fn) {
@karen-white
karen-white / rateresponse.json
Last active April 3, 2019 23:44
Sample Rate Response
{
"quote_id": "sample_quote",
"messages": [],
"carrier_quotes": [
{
"carrier_info": {
"code": "usps_pitney_bowes",
"display_name": "USPS"
},
"quotes": [
[PHP]
;;;;;;;;;;;;;;;;;;;
; About php.ini ;
;;;;;;;;;;;;;;;;;;;
; PHP's initialization file, generally called php.ini, is responsible for
; configuring many of the aspects of PHP's behavior.
; PHP attempts to find and load this configuration from a number of locations.
; The following is a summary of its search order: