Skip to content

Instantly share code, notes, and snippets.

View jjloomis's full-sized avatar

Jeffrey John Loomis jjloomis

  • Milwaukee, WI
View GitHub Profile
@jjloomis
jjloomis / iterm2-solarized.md
Created January 21, 2025 22:30 — forked from kevin-smets/iterm2-solarized.md
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k

@jjloomis
jjloomis / webkit-pseudo-elements.md
Created May 23, 2022 22:07 — forked from leostratus/webkit-pseudo-elements.md
Webkit Pseudo-Element Selectors (Shadow DOM Elements)

An ongoing project to catalogue all of these sneaky, hidden, bleeding edge selectors as I prepare my JSConf EU 2012 talk.

Everything is broken up by tag, but within each the selectors aren't particularly ordered.

I have not tested/verified all of these. Have I missed some or got it wrong? Let me know. - A

A friendly reminder that you may need to set this property on your target/selected element to get the styling results you want:

-webkit-appearance:none;

@jjloomis
jjloomis / acf-oembed.php
Created April 20, 2022 18:59 — forked from zachakbar/acf-oembed.php
ACF oEmbed script w/ player parameters
<?php
/**
* ACF oEmbed script w/ player parameters
* @link https://www.advancedcustomfields.com/resources/oembed/
*/
$video = get_field('video');
// use preg_match to find iframe src
preg_match('/src="(.+?)"/', $video, $matches);
@jjloomis
jjloomis / disable_tags_WP.php
Created October 12, 2021 15:46 — forked from loorlab/disable_tags_WP.php
Disable Tags WordPress
<?php
// Disable Tags Dashboard WP
add_action('admin_menu', 'my_remove_sub_menus');
function my_remove_sub_menus() {
remove_submenu_page('edit.php', 'edit-tags.php?taxonomy=post_tag');
}
// Remove tags support from posts
function myprefix_unregister_tags() {
unregister_taxonomy_for_object_type('post_tag', 'post');
@jjloomis
jjloomis / author-box.php
Last active April 23, 2020 14:29 — forked from dknauss/entry-author.php
WordPress page template partial for Theme Foundry's Make theme modified to display Co-Authors and Guest Authors created with the Co-Authors Plus plugin.
<?php
/**
* @package Make
*/
// Modified for use with Co-Authors Plus - dan@newlocalmedia - 1-27-17 - Make 1.8.3
$author_key = 'layout-' . make_get_current_view() . '-post-author';
$author_option = make_get_thememod_value( $author_key );
?>
#
# Firstly, I created a child theme.
# Now, create a single.php file in your child theme folder. I would recommend using a plugin to copy the single.php file from Parent Theme Folder to Child Theme Folder.
# Now copy and paste the below-given code in the single.php file of your child theme, in between div tags of the post author.
#
# TN STARTADD AUTHOR BOX IN WORDPRESS WITHOUT PLUGIN
<h4 class="about-the-author">About The Author</h4>
@jjloomis
jjloomis / drop_shadow
Created September 13, 2016 18:11 — forked from chrisn/drop_shadow
Add a drop shadow to an image, using ImageMagick
convert <input-file> \( +clone -background black -shadow 30x8+0+0 \) +swap -background none -layers merge +repage <output-file>