Skip to content

Instantly share code, notes, and snippets.

Avatar

Tom noisymask

  • Belfast
View GitHub Profile
@noisymask
noisymask / ImageHelperExtension.php
Last active Mar 23, 2017
Craft CMS image resizing helper (Twig)
View ImageHelperExtension.php
<?php
/**
* Shortcut wrapper for image resizing on the fly
*
* Usage:
*
* {{ image|resize(width, height, mode, position, quality) }}
*
* e.g.
*
@noisymask
noisymask / jquery.form-wizard.js
Last active Apr 26, 2017
Turn a form into a step-by-step process
View jquery.form-wizard.js
;(function ($, window, document, undefined) {
"use strict";
var pluginName = "formWizard",
defaults = {
sections: 'fieldset',
navNext: '#form-next',
navPrev: '#form-previous',
progressBar: '.progress-bar',
@noisymask
noisymask / _bootstrap-3-extra-large-grid.scss
Last active Feb 26, 2021
Bootstrap 3 extra large grid with SASS
View _bootstrap-3-extra-large-grid.scss
// for background see http://stackoverflow.com/a/25644266/526258
@import "bootstrap";
// XLarge screen
$screen-xl: 1600px;
$screen-xl-min: $screen-xl;
$screen-xl-hugedesktop: $screen-xl-min;
// So media queries don't overlap when required, provide a maximum