Skip to content

Instantly share code, notes, and snippets.

View sean-e-dietrich's full-sized avatar

Sean Dietrich sean-e-dietrich

View GitHub Profile
@sean-e-dietrich
sean-e-dietrich / post-tree
Last active July 13, 2020 16:13
PHP Tree
Array
(
[_asset_information_form-student_layout_box] => Array
(
[form_key] => student_layout_box
[type] => layout_box
[value] =>
[extra] => Array
(
[editable] => 1
@sean-e-dietrich
sean-e-dietrich / .gitignore
Last active March 12, 2020 16:32
Default Wordpress Gitignore
*~
.DS_Store
.svn
.cvs
*.bak
*.swp
Thumbs.db
ehthumbs.db
Icon?
._*
@sean-e-dietrich
sean-e-dietrich / analyze_scores.js
Created February 22, 2020 08:48
circleci-lighthouse
#!/usr/local/bin/node
const fs = require("fs");
const path = require("path");
const bot = require("circle-github-bot").create();
const pkg = JSON.parse(fs.readFileSync(process.argv[2], "utf8"));
const requiredScores = pkg.requiredScores;
const reportsDir = process.argv[3];
@sean-e-dietrich
sean-e-dietrich / sample.sh
Last active January 6, 2020 16:28
Run Script
#!/bin/bash
echo $1
echo $2
echo $3
#fin run-cli 'git clone
@sean-e-dietrich
sean-e-dietrich / docksal.yml
Last active November 12, 2019 19:11
Play with Docksal
version: '3'
services:
trigger:
image: franela/dind
command: sh -c "curl -fsSL get.docksal.io | bash && top"
volumes: [ '/var/run/docker.sock:/var/run/docker.sock' ]
diff --git a/src/Element/PaymentLineItemsDisplay.php b/src/Element/PaymentLineItemsDisplay.php
index 2374b093..79dfccdd 100644
--- a/src/Element/PaymentLineItemsDisplay.php
+++ b/src/Element/PaymentLineItemsDisplay.php
@@ -133,9 +133,9 @@ class PaymentLineItemsDisplay extends FormElement implements ContainerFactoryPlu
'label' => array(
'#attributes' => array(
'class' => array('payment-amount-label'),
- 'colspan' => 3,
),
diff --git a/honeypot.module b/honeypot.module
index 3e0248d..48f1fb4 100644
--- a/honeypot.module
+++ b/honeypot.module
@@ -134,7 +134,7 @@ function honeypot_add_form_protection(&$form, FormStateInterface $form_state, ar
'#type' => 'textfield',
'#title' => t('Leave this field blank'),
'#size' => 20,
- '#weight' => 100,
+ '#weight' => -100,
@sean-e-dietrich
sean-e-dietrich / recaptch.patch
Created August 7, 2019 20:44
Recaptch w/ Invisible and Ajax Issue
diff --git a/config/install/captcha.captcha_point.recaptcha_test_ajax_form.yml b/config/install/captcha.captcha_point.recaptcha_test_ajax_form.yml
new file mode 100644
index 0000000..c630a71
--- /dev/null
+++ b/config/install/captcha.captcha_point.recaptcha_test_ajax_form.yml
@@ -0,0 +1,10 @@
+langcode: en
+status: true
+dependencies: { }
+formId: recaptcha_test_ajax_form
diff --git a/js/stripe.js b/js/stripe.js
index ce90de9..238883e 100644
--- a/js/stripe.js
+++ b/js/stripe.js
@@ -2,12 +2,12 @@
* @file
* Provides stripe attachment logic.
*/
+var stripe = null;
diff --git a/src/Event/StripeEvent.php b/src/Event/StripeEvent.php
new file mode 100644
index 0000000..00a9d40
--- /dev/null
+++ b/src/Event/StripeEvent.php
@@ -0,0 +1,56 @@
+<?php
+
+namespace Drupal\payment_stripe\Event;
+