Skip to content

Instantly share code, notes, and snippets.

Matt Bailey matt-bailey

Block or report user

Report or block matt-bailey

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
matt-bailey / .stencil
Last active Jun 21, 2019
Example BigCommerce .stencil file
View .stencil
"normalStoreUrl": "[store-url]",
"port": 3000,
"clientId": "[client-id]",
"accessToken": "[access-token]",
"customLayouts": {
"brand": {},
"category": {},
"page": {
matt-bailey /
Last active Sep 14, 2019
How to set up DNS records on to use a custom domain on Github Pages

How to set up DNS records on to use a custom domain on Github Pages

You would think it would be easy to find this information, but none of the Github or Gandi documentation is clear so I have recorded the required steps here.

Create the following A records:

@ 1800 IN A
@ 1800 IN A
@ 1800 IN A
matt-bailey /
Created Apr 23, 2018 — forked from kevyworks/
Prepare Dev Machine for: Node Composer & Laravel Valet
# install brew
/usr/bin/ruby -e "$(curl -fsSL"
# update brew
brew update
# should be added by homebrew installation?
sudo chown -R `whoami`:admin /usr/local/opt
# Node Version Manager
matt-bailey / formstack-embed-using-postscribe.html
Created Sep 13, 2017
Embed a Formstack form asynchronously, using Postscribe
View formstack-embed-using-postscribe.html
<!-- Main form wrapper, required for styling the form -->
<div class="webform">
<!-- Empty div (must have a unique ID), into which the form will be loaded -->
<div id="formstack-bridal-appointment"></div>
<script type="text/javascript">// <![CDATA[
// Only run the code below when jQuery says the document is ready
(function($) {
// Process the form using postscribe:
// 1. Must reference the unique ID of the div above
matt-bailey / prototype.min.js
Created Jul 7, 2017
Prototype 1.7 + fix for conflict with Angular (minified)
View prototype.min.js
function $A(iterable){if(!iterable)return[];if("toArray"in Object(iterable))return iterable.toArray();for(var length=iterable.length||0,results=new Array(length);length--;)results[length]=iterable[length];return results}function $w(string){return Object.isString(string)?(string=string.strip(),string?string.split(/\s+/):[]):[]}function $H(object){return new Hash(object)}function $R(start,end,exclusive){return new ObjectRange(start,end,exclusive)}function $(element){if(arguments.length>1){for(var i=0,elements=[],length=arguments.length;i<length;i++)elements.push($(arguments[i]));return elements}return Object.isString(element)&&(element=document.getElementById(element)),Element.extend(element)}var bindTemp=Function.prototype.bind;Function.prototype.bind=function(oThis){if("function"!=typeof this)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");var,1),fToBind=this,fNOP=function(){},fBound=function(){return fToBind.apply(this ins
matt-bailey / prototype.js
Created Jul 7, 2017
Prototype 1.7 + fix for conflict with Angular
View prototype.js
* Prototype Angular conflict fix
var bindTemp = Function.prototype.bind;
Function.prototype.bind = function(oThis) {
if (typeof this !== 'function') {
// closest thing possible to the ECMAScript 5
// internal IsCallable function
matt-bailey /
Created Jun 8, 2017
Instructions on the markup to use in our Magento 2 Meganav module

Meganav Markup

Our Meganav module requires some simple markup in order for it to function correctly.

Here is a basic example showing a single column of links:


    <!-- Heading with link and toggle -->
matt-bailey / aliases.js
Last active May 25, 2017
Example aliases file for load-grunt-config in our Magento 2 setup
View aliases.js
/* global module */
/* File location: dev/tools/grunt/configs/aliases.js */
/* Usage: */
'use strict';
module.exports = {
default: [],
matt-bailey / env.php
Created May 18, 2017
Example Magento 2 env.php file
View env.php
return array (
'backend' =>
array (
'frontName' => 'admin',
'crypt' =>
array (
'key' => '9af38453afda96c7862c7d10eb493ba4',
matt-bailey / customer_account.xml
Created Dec 5, 2016
Disable My Account sidebar links in Magento 2
View customer_account.xml
<?xml version="1.0"?>
* Copyright © 2016 Magento. All rights reserved.
* See COPYING.txt for license details.
<page xmlns:xsi="" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<!-- Remove unwanted account navigation links -->
You can’t perform that action at this time.