Skip to content

Instantly share code, notes, and snippets.

View marknotton's full-sized avatar

Mark Notton marknotton

View GitHub Profile
@marknotton
marknotton / Helpers.php
Created June 2, 2023 13:03
Add a template path to any location, includes plugins/modules as well as the native templates directory
<?php
namespace yellostudio\helpers;
use Craft;
use craft\base\Plugin;
use yii\base\Event;
use craft\web\View;
use craft\events\RegisterTemplateRootsEvent;
@marknotton
marknotton / codepen-default-css.css
Last active June 14, 2023 21:40
CodePen Default CSS Styling
*:where(:not(html, canvas, img, svg):not(svg *, symbol *)) {
all: unset;
display: revert;
}
*, *::before, *::after { box-sizing: border-box; }
img {
max-inline-size: 100%;
max-block-size: 100%;
@marknotton
marknotton / cloudSettings
Last active December 23, 2021 00:22
Visual Studio Code Settings
{"lastUpload":"2021-12-23T00:21:55.942Z","extensionVersion":"v3.4.3"}
@marknotton
marknotton / History|-10040d2d|entries.json
Last active January 16, 2023 13:26
Gulpfile and Config
{"version":1,"resource":"file:///Users/marknotton/Projects/Pairly/Website/src/sass/pages/test.scss","entries":[{"id":"Y6wR.scss","timestamp":1654721798622}]}
@marknotton
marknotton / fixers.js
Last active April 9, 2018 11:01
Common fixers that tend to resolve basic markup issues
/**
* Apply common fixes
* @constructor
* @param {args} methods - List of methods you want to include. Leave blank to apply all methods
* @example new Fixers(); // Runs all fixers
* @example new Fixers('fastclick', 'links') // Runs only the fastclick and links fixers;
*/
class Fixers {
constructor () {
0462cf193eaf5874916a14e55c4d17a63061dc2a3e9b26182c63fd82fa3d70f22916de2288cbbc79cdde29149a0c6522c3cde04df174d1473f565b804ea73eca88;zesda