Skip to content

Instantly share code, notes, and snippets.

View JimmyHowe's full-sized avatar
🏠
Working from home

Jimmy Howe JimmyHowe

🏠
Working from home
View GitHub Profile
@JimmyHowe
JimmyHowe / free_email_provider_domains.txt
Created November 20, 2020 12:03 — forked from tbrianjones/free_email_provider_domains.txt
A list of free email provider domains. Some of these are probably not around anymore. I've combined a dozen lists from around the web. Current "major providers" should all be in here as of the date this is created.
1033edge.com
11mail.com
123.com
123box.net
123india.com
123mail.cl
123qwe.co.uk
126.com
150ml.com
15meg4free.com
\:(\w+\.?\w+)
<?php
/**
* Plugin Name: WordPress Vue Tool
* Description: Example WordPress Vue Tool Plugin
*/
function wordpress_vue_tool_build_js()
{
wp_register_script('wordpress-vue-tool', plugin_dir_url(__FILE__) . 'app/dist/build.js', [], null, true);
@JimmyHowe
JimmyHowe / doc-width-report.js
Created November 28, 2019 11:41
Check for elements pushing off screen
var docWidth = document.documentElement.offsetWidth;
[].forEach.call(
document.querySelectorAll('*'),
function(el) {
if (el.offsetWidth > docWidth) {
console.log(el);
}
}
);
<?php
protected function _content_template()
{
?>
<div class="jhdc-branding-withlove">
<a href='https://jimmyhowe.com/'
target='_blank'>Made with ❤ by JimmyHowe.com</a>
<?php
protected function render()
{
echo '<div class="jhdc-branding-withlove">';
echo "<a href='https://jimmyhowe.com'
target='_blank'>Made with ❤ by JimmyHowe.com</a>";
echo '</div>';
<?php
protected function _register_controls()
{
$this->start_controls_section('brand_colors', [
'label' => __('Colors', 'jhdc-branding-elementor-extension'),
'tab' => Controls_Manager::TAB_STYLE,
]);
$this->add_control('color', [
<?php
use Elementor\Controls_Manager;
use Elementor\Group_Control_Typography;
use Elementor\Widget_Base;
if ( ! defined('ABSPATH') )
{
exit; // Exit if accessed directly.
}
<?php
/**
* JHDC Branding Elementor Extension
*
* @package JHDC
* @author Jimmy Howe
* @copyright 2019 JimmyHowe.com
* @license GPL-2.0-or-later
*
<?php
/**
* JHDC Branding Elementor Extension
*
* @package JHDC
* @author Jimmy Howe
* @copyright 2019 JimmyHowe.com
* @license GPL-2.0-or-later
*