Skip to content

Instantly share code, notes, and snippets.

View JosephMaxwell's full-sized avatar
🇺🇸
Working.

Joseph Maxwell JosephMaxwell

🇺🇸
Working.
View GitHub Profile
@JosephMaxwell
JosephMaxwell / homepage.md
Last active March 18, 2026 21:29
Volt & Spoke Demo Store — Homepage Widget Configuration Guide

Volt & Spoke — Homepage Setup Guide

How to use this guide

Option A — PageBuilder (manual): Follow the step-by-step instructions under each widget. Add widgets in order, copy-paste the text fields, and upload the provided images.

Option B — API (automated): Use the widget_configuration JSON blocks with the BigCommerce Widgets API to create and place widgets programmatically.

All images are pre-generated and hosted on the BigCommerce CDN — just copy the URLs.

@Vinai
Vinai / Magento_IntegrationTest_Config.php
Last active July 2, 2025 00:06
Simple Magento 1 bootstrap for PHPUnit.
<?php
class Magento_IntegrationTest_Config extends Mage_Core_Model_Config
{
private $modelTestDoubles = [];
private $resourceModelTestDoubles = [];
public function setModelTestDouble($modelClass, $testDouble)
{
@goldsky
goldsky / transformKeys.php
Created August 16, 2012 18:36
Convert under_score type array's keys to camelCase type array's keys and likewise
<?php
/**
* Convert under_score type array's keys to camelCase type array's keys
* @param array $array array to convert
* @param array $arrayHolder parent array holder for recursive array
* @return array camelCase array
*/
public function camelCaseKeys($array, $arrayHolder = array()) {
$camelCaseArray = !empty($arrayHolder) ? $arrayHolder : array();
@adamesque
adamesque / preloader.js
Created February 16, 2011 23:38
Uses jQuery's new Deferred object to help with image loading
/**
* Helper function for passing arrays of promises to $.when
*/
jQuery.whenArray = function ( array ) {
return jQuery.when.apply( this, array );
};
/**
* Accepts a single image src or an array of image srcs.