Skip to content

Instantly share code, notes, and snippets.

View jeroenvermunt's full-sized avatar

Jeroen Clemens Vermunt jeroenvermunt

View GitHub Profile
@jeroenvermunt
jeroenvermunt / pickle_decorators
Created March 28, 2023 16:01
Decorators to save and load input of a function to and from a pickle file. Useful for debugging, prototyping or analysis
def save_input(fn):
"""saves input arguments as a pickle file for debugging/ analysis"""
@wraps(fn)
def wrapper(*args, **kwargs):
# create tmp folder if it doesn't exist
if not os.path.exists('tmp/pickles'):
os.mkdir('tmp/pickles')
# save input arguments
<?php
/**
* Plugin Name: Elementor Form Additional Webhook
* Plugin URI: https://gist.github.com/csalzano/dfd754e0fe8b6ac10731fad8f257c0bf
* Description: Adds a second Webhook to an Elementor form
* Version: 1.0.1
* Author: Corey Salzano
* Author URI: https://breakfastco.xyz/
* License: GPLv2 or later
* License URI: http://www.gnu.org/licenses/gpl-2.0.html