Skip to content

Instantly share code, notes, and snippets.

@jeremypeter
jeremypeter / yaml_editor-8.x-1.1-drupal-10-compatibility-fixes.patch
Last active February 24, 2023 21:20
Drupal Yaml Editor 8.x-1.1 Drupal 10 Compatibility Patch
diff --git a/js/yaml-editor.js b/js/yaml-editor.js
index 206ce0f..884a943 100644
--- a/js/yaml-editor.js
+++ b/js/yaml-editor.js
@@ -5,15 +5,23 @@
Drupal.behaviors.yamlEditor = {
attach: function (context) {
var initEditor = function () {
- $('textarea[data-yaml-editor]', context).once('yaml-editor').each(function () {
- var $textarea = $(this);
@jeremypeter
jeremypeter / core.extension.yml
Created January 19, 2023 18:15
Acquia CMS Extensions for Drupal 9.5 upgrade
purge: 0
collapsiblock: 0
page_manager: 0
purge_queuer_coretags: 0
locale: 0
panels: 0
password_policy: 0
layout_discovery: 0
schema_metatag: 0
acquia_purge: 0
@jeremypeter
jeremypeter / Keyboard Shorcuts for Premailer Build System
Last active December 11, 2015 03:58
Sublime Text build system for Premailer. Creates a separate html or txt version with option to minify them once they have been converted.
[
{ "keys": ["ctrl+alt+super+c"], "command": "build", "args": {"variant": "Premailer - Inline Campaign Monitor"} },
{ "keys": ["ctrl+alt+super+m"], "command": "build", "args": {"variant": "Premailer - Minify HTML"} },
{ "keys": ["ctrl+alt+super+t"], "command": "build", "args": {"variant": "Premailer - Create Text Version"} }
]
@jeremypeter
jeremypeter / gist:3843067
Created October 5, 2012 23:32
Regex: Selects URL if href is present
((?<=href\=["|'])http(s)?://([\w+?\.\w+])+([a-zA-Z0-9\~\!\@\#\$\%\^\&amp;\*\(\)_\-\=\+\\\/\?\.\:\;\'\,]*)?)