Skip to content

Instantly share code, notes, and snippets.

View CaelanStewart's full-sized avatar

Caelan Stewart CaelanStewart

  • Folkestone, UK
View GitHub Profile
window.CustomVueDebug = (function (window, document) {
// Configurable options
let autoInjectButton = false, // If enable a trigger button will be automatically injected
breadcrumbLength = 1, // Number of parent's names to concatenate in the tooltip
buttonSelector = '#toggle-vue-debug', // Customise the selector to find the existing button
removeReferences = false; // If true, the global refs will be removed after disable
// Debugger code
let button = document.querySelector(buttonSelector),
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Test Case</title>
<style>
.box {
position: relative;
display: inline-block;
margin: 10px;
@CaelanStewart
CaelanStewart / AutoWatermark.module.php
Last active November 24, 2016 16:28
AutoWatermark - Automatically add watermarks to images using ProcessWire
<?php
/**
* Automatically adds a watermark to uploaded images.
*
* by PROGRESS: A Creative Agency | https://www.progress.agency/
*
* @author Caelan Stewart <caelan@progress.agency>
*/