Skip to content

Instantly share code, notes, and snippets.

Avatar

Matt Bailey matt-bailey

  • GPMD
  • London, UK
View GitHub Profile
@matt-bailey
matt-bailey / blinker-related-products.html
Created February 7, 2022 16:20
Blinker App BigCommerce Integration - Related products grid template
View blinker-related-products.html
@matt-bailey
matt-bailey / _blinker.scss
Created February 7, 2022 15:14
Blinker App BigCommerce Integration - SCSS
View _blinker.scss
// =============================================================================
// Blinker
// =============================================================================
/* Related posts */
.blinker-related-posts {
clear: both;
}
@matt-bailey
matt-bailey / blinker.js
Last active February 7, 2022 15:12
Blinker App BigCommerce Integration - Javascript
View blinker.js
// import PageManager from './page-manager';
import $ from 'jquery';
import utils from '@bigcommerce/stencil-utils';
import 'slick-carousel';
// export default class Blinker extends PageManager {
export default function() {
function init() {
const blinkerId = '[your-blinker-id]';
View gist:a332fa1e9afb908aedd52c089e81cb3d
Adyen Test Card Numbers
These cards are only valid on our TEST system and they will never involve any actual transaction or transfer of funds. The TEST card numbers will not work on the Adyen LIVE Platform.
For all cards use the following expiration and CVV2/CVC2/or CID for Amex.
For all cards:
Expiration Dates CVV2 / CVC3 CID (American Express)
08/2018 OR 10/2020 737 7373
@matt-bailey
matt-bailey / .stencil
Last active June 21, 2019 09:26
Example BigCommerce .stencil file
View .stencil
{
"normalStoreUrl": "[store-url]",
"port": 3000,
"clientId": "[client-id]",
"accessToken": "[access-token]",
"customLayouts": {
"brand": {},
"category": {},
"page": {
"style-guide.html":"/style-guide/"
@matt-bailey
matt-bailey / github-pages-custom-domain-gandi-dns-records.md
Last active June 6, 2023 16:32
How to set up DNS records on gandi.net to use a custom domain on Github Pages
View github-pages-custom-domain-gandi-dns-records.md

How to set up DNS records on gandi.net 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 185.199.108.153
@ 1800 IN A 185.199.109.153
@ 1800 IN A 185.199.110.153
@matt-bailey
matt-bailey / prep-ncv-env.sh
Created April 23, 2018 13:20 — forked from kevyworks/prep-ncv-env.sh
Prepare Dev Machine for: Node Composer & Laravel Valet
View prep-ncv-env.sh
# install brew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# update brew
brew update
# should be added by homebrew installation?
sudo chown -R `whoami`:admin /usr/local/opt
# Node Version Manager
@matt-bailey
matt-bailey / formstack-embed-using-postscribe.html
Created September 13, 2017 11:34
Embed a Formstack form asynchronously, using Postscribe
View formstack-embed-using-postscribe.html
// https://github.com/krux/postscribe
<!-- 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
matt-bailey / prototype.min.js
Created July 7, 2017 22:34
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 aArgs=Array.prototype.slice.call(arguments,1),fToBind=this,fNOP=function(){},fBound=function(){return fToBind.apply(this ins
@matt-bailey
matt-bailey / prototype.js
Created July 7, 2017 22:33
Prototype 1.7 + fix for conflict with Angular
View prototype.js
/**
* Prototype Angular conflict fix
* http://tooschee.com/magento-prototype-vs-angular-conflict-problem/
*/
var bindTemp = Function.prototype.bind;
Function.prototype.bind = function(oThis) {
if (typeof this !== 'function') {
// closest thing possible to the ECMAScript 5
// internal IsCallable function