Skip to content

Instantly share code, notes, and snippets.

View jeremyfelt's full-sized avatar
🍕
Look at that pizza emoji!

Jeremy Felt jeremyfelt

🍕
Look at that pizza emoji!
View GitHub Profile
@jeremyfelt
jeremyfelt / index.js
Created February 7, 2019 18:31
Creating a notice in Gutenberg
// See https://github.com/WordPress/gutenberg/blob/master/docs/designers-developers/developers/tutorials/notices/README.md
const {
dispatch,
} = wp.data;
const {
createWarningNotice,
} = dispatch( 'core/notices' );
@jeremyfelt
jeremyfelt / sync.sh
Created July 3, 2018 15:42
Syncing a WordPress directory into WSUWP
#!/bin/sh
#
# Sync the WordPress tracking repo with that inside WSUWP.
#
rsync --delete -rlgDh --exclude '.git' --exclude 'wp-content/plugins' --exclude 'wp-content/themes' ~/Development/wordpress/ ~/Development/vvv/www/wsuwp/www/wordpress/
@jeremyfelt
jeremyfelt / structure.md
Created March 1, 2018 23:41
Introduction to WordPress

Introduction

  • Go around the room
  • Attendance recording (?)
  • Cover WSU community - Slack and Open Lab
    • Talk about signing up for updates on web.wsu.edu

Basics

  • How do I login to my site - /wp-admin/
@jeremyfelt
jeremyfelt / anchor-accessibility.md
Last active January 17, 2018 00:49
Anchor accessibility

https://www.w3.org/TR/2008/NOTE-WCAG20-TECHS-20081211/G183

G183 implies that links without underlines as part of a paragraph of text can be a thing as long as the color contrast ratio is 3:1 with surrounding text, is 4.5:1 with the background, and changes visually (underline, bold, italics, font size) on hover/focus.

https://www.w3.org/TR/2008/NOTE-WCAG20-TECHS-20081211/G182.html

G182 implies that when color is used to convey information, there should be an additional visual cue separating the text from its surroundings - underline, bold, italics, font-size.

https://www.w3.org/TR/WCAG20-TECHS/F73.html

li.wsuwp-content-syndicate-item {
list-style-position: inside;
padding: .5em 1em 0 0;
}
ul.wsuwp-content-syndicate-list {
columns: 3;
padding: 0;
}
@jeremyfelt
jeremyfelt / keybase.md
Created August 4, 2017 22:58
keybase.md

Keybase proof

I hereby claim:

  • I am jeremyfelt on github.
  • I am jeremyfelt (https://keybase.io/jeremyfelt) on keybase.
  • I have a public key ASBOFXkhf8RuQmNVOZArJR5DZez5ynP8tapa-FoCBe28cQo

To claim this, I am signing this object:

@jeremyfelt
jeremyfelt / analytics.html
Created August 4, 2017 17:05
WSU Google Tag Manager configuration
<script type='text/javascript'>
/* <![CDATA[ */
var wsu_analytics = {
"defaults":{
"cookieDomain":".wsu.edu"
},
"wsuglobal":{
"ga_code":"UA-55791317-1", // Leave this as is.
"is_editor":"false", // Optional. Set to true if visitor is an editor, false if not.
"track_view":"yes",
@jeremyfelt
jeremyfelt / iknowjs.js
Last active April 11, 2017 05:43
It's super
class React.Component {}
class First extends React.Component {
constructor(props) {
super();
}
}
class Second extends First {
constructor(props) {

Error

PHP Warning:  explode() expects parameter 2 to be string, array given in /var/www/wp-content/plugins/events-calendar-pro/src/Tribe/Recurrence/Meta.php on line 1403"
PHP Warning:  array_map(): Argument #2 should be an array in /var/www/wp-content/plugins/events-calendar-pro/src/Tribe/Recurrence/Meta.php on line 1403"

Code introduced in The Events Calendar Pro 4.4.1

@jeremyfelt
jeremyfelt / ubuntu-wifi-diag.txt
Last active September 11, 2022 21:28
Figuring out my wifi issues in Ubuntu
> cat kern.log
Jan 2 13:03:25 jeremy-wsu NetworkManager[21883]: <info> [1483391005.6506] device (wlp58s0): supplicant interface state: 4-way handshake -> completed
Jan 2 13:05:25 jeremy-wsu kernel: [330686.828062] wlp58s0: disconnect from AP 58:6d:8f:99:8b:f4 for new auth to 58:6d:8f:99:8b:f5
> lspci -k -nn | grep -A 3 -i net
3a:00.0 Network controller [0280]: Intel Corporation Wireless 8260 [8086:24f3] (rev 3a)
Subsystem: Intel Corporation Wireless 8260 [8086:0050]
Kernel driver in use: iwlwifi