Skip to content

Instantly share code, notes, and snippets.

View slushman's full-sized avatar

Chris Wilcoxson slushman

View GitHub Profile
@slushman
slushman / customizer-links.php
Last active September 23, 2023 13:03
How to link into the WordPress Customizer
@slushman
slushman / formidable-forms-select.php
Created July 18, 2016 18:14
WordPress Customizer select control with published Formidable forms.
$forms = FrmForm::get_published_forms();
$choices = array();
foreach ( $forms as $form ) {
$choices[$form->id] = $form->name;
}
// Formidable Forms Select Field
@slushman
slushman / Parker Results Cheatsheet.md
Last active October 20, 2016 14:54
Cheatsheet for the results from Parker.
  • Total Stylesheets
    • The quantity of stylesheets it examined.
  • Total Stylesheet Size
    • Size in bytes of the stylesheet(s)
    • Ideal: no real ideal, but smaller is better.
  • Total Rules
    • The quantity of CSS rules in the stylesheet(s).
    • Ideal: no real ideal, but a smaller number here means a simpler stylesheet.
  • Total Selectors
    • The quantity of selectors in the stylesheet(s).
@slushman
slushman / wp_auto_install.sh
Last active December 14, 2018 03:11 — forked from nicomollet/wp_auto_install.sh
WP-CLI auto install local development site script
#!/bin/bash
# Get the required project variables
printf "Project name: "
read PROJECT_NAME
printf "Project folder name: "
read PROJECT_FOLDER
printf "Database Name: "
@slushman
slushman / dashicons-js-array
Last active October 29, 2018 20:04
Javascript array of Dashicons.
const dashIcons = [
{ value: 'menu', label: 'Menu' },
{ value: 'dashboard', label: 'Dashboard' },
{ value: 'admin-site', label: 'Admin Site' },
{ value: 'admin-media', label: 'Admin Media' },
{ value: 'admin-page', label: 'Admin Page' },
{ value: 'admin-comments', label: 'Admin Comments' },
{ value: 'admin-appearance', label: 'Admin Appearance' },
{ value: 'admin-plugins', label: 'Admin Plugins' },
{ value: 'admin-users', label: 'Admin Users' },
export default [
{ value: 'admin-appearance', label: 'Admin Appearance' },
{ value: 'admin-collapse', label: 'Admin Collapse' },
{ value: 'admin-comments', label: 'Admin Comments' },
{ value: 'admin-generic', label: 'Admin Generic' },
{ value: 'admin-home', label: 'Admin Home' },
{ value: 'admin-links', label: 'Admin Links' },
{ value: 'admin-media', label: 'Admin Media' },
{ value: 'admin-network', label: 'Admin Network' },
{ value: 'admin-page', label: 'Admin Page' },
@slushman
slushman / gist:feffd0d5b5d969239a0faadec2ef43c7
Last active July 11, 2020 06:14
React Native PlatformColor Names
labelColor
secondaryLabelColor
tertiaryLabelColor
quaternaryLabelColor
systemFillColor
secondarySystemFillColor
tertiarySystemFillColor
quaternarySystemFillColor
@slushman
slushman / wordle-list
Created March 25, 2022 19:48
An alphabetized list of five-letter words used in Wordle as the puzzle clues.
[
"aback",
"abase",
"abate",
"abbey",
"abbot",
"abhor",
"abide",
"abled",
"abode",
@slushman
slushman / wordle-dictionary
Last active August 11, 2023 20:10
Alphabetized list of five-letter words used as the dictionary in Wordle. Includes the words used as the puzzle answers.
[
"aahed",
"aalii",
"aapas",
"aargh",
"aarti",
"abaca",
"abaci",
"aback",
"abacs",
@slushman
slushman / gist:29570d2716cffa6c1d1d0966a29c0906
Created August 11, 2023 18:48
Wordle words without repeated letters
abhor
abide
abled
abode
abort
about
above
abuse
acorn
acrid