Skip to content

Instantly share code, notes, and snippets.


Chris Wilcoxson slushman

View GitHub Profile
ahkohd / disable-chromium-two-fingers-swipe-navigation.bash
Last active Mar 30, 2021
Code snippet to disable two-finger swipe gesture for next/previous page navigation for Chromium based browsers on macOS.
View disable-chromium-two-fingers-swipe-navigation.bash
bundleID=$(osascript -e 'id of app "'$appName'"')
defaults write $bundleID AppleEnableSwipeNavigateWithScrolls -bool FALSE
CodingDoug /
Last active Oct 19, 2021
Copying Data from a Google Sheet into Firebase Realtime Database in real time via Apps Script
lukecav / functions.php
Last active Jul 16, 2018
Removing Header Junk in WordPress
View functions.php
remove_action('wp_head', 'rsd_link'); // remove really simple discovery
remove_action('wp_head', 'wp_generator'); // remove wordpress version
remove_action('wp_head', 'feed_links', 2); // remove rss feed links *** RSS ***
remove_action('wp_head', 'feed_links_extra', 3); // removes all rss feed links
remove_action('wp_head', 'index_rel_link'); // removes link to index (home) page
remove_action('wp_head', 'wlwmanifest_link'); // remove wlwmanifest.xml (windows live writer support)
remove_action('wp_head', 'start_post_rel_link', 10, 0); // remove random post link
remove_action('wp_head', 'parent_post_rel_link', 10, 0); // remove parent post link
pedro-vasconcelos / clean-wordpress-head-4.6.1
Created Oct 4, 2016
Remove Wordpress Junk from Header
View clean-wordpress-head-4.6.1
remove_action('wp_head', 'print_emoji_detection_script', 7);
remove_action('wp_print_styles', 'print_emoji_styles');
remove_action( 'admin_print_scripts', 'print_emoji_detection_script' );
remove_action( 'admin_print_styles', 'print_emoji_styles' );
// First, we remove all the RSS feed links from wp_head using remove_action
remove_action( 'wp_head','feed_links', 2 );
tripflex / functions.php
Last active Jun 24, 2021
WordPress Remove Filter (remove_filter converted to remove_class_filter) to remove Filter/Action without Class Object access. Works with WordPress 1.2+ (4.7+ support added 9-19-2016)
View functions.php
* Make sure the function does not exist before defining it
if( ! function_exists( 'remove_class_filter' ) ){
* Remove Class Filter Without Access to Class Object
* In order to use the core WordPress remove_filter() on a filter added with the callback
codescribblr / video-functions.php
Created Feb 17, 2014
functions related to video embeds in wordpress
View video-functions.php
# This file contains functions that are related with videos
# Filters/resizes video embed codes.
function filter_video($html, $wmode = false, $width = false, $height = false) {
$final_html = $html;
if ($wmode) {
if (strpos($final_html, 'iframe') !== FALSE && strpos($final_html, 'youtube') !== FALSE) {
malarkey / Contract Killer
Last active Nov 18, 2021
The latest version of my ‘killer contract’ for web designers and developers
View Contract Killer

When times get tough and people get nasty, you’ll need more than a killer smile. You’ll need a killer contract.

Used by 1000s of designers and developers Clarify what’s expected on both sides Helps build great relationships between you and your clients Plain and simple, no legal jargon Customisable to suit your business Used on countless web projects since 2008