Skip to content

Instantly share code, notes, and snippets.

chrismccoy

Block or report user

Report or block chrismccoy

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@chrismccoy
chrismccoy / gutenberg.txt
Last active May 13, 2020
Gutenberg Resources
View gutenberg.txt
Using Gutenberg Block Variations in the WordPress Block Editor
https://richtabor.com/block-variations/
How to Turn off / Disable Unneeded WooCommerce Gutenberg blocks
https://rudrastyh.com/gutenberg/remove-woocommerce-blocks.html
How to add anchor support to Gutenberg blocks
https://junaid.dev/how-to-add-anchor-support-to-gutenberg-blocks-on-wordpress/
How to test your Gutenberg blocks with Jest and Puppeteer
@chrismccoy
chrismccoy / restapi.txt
Last active Apr 15, 2020
WordPress REST API Resources
View restapi.txt
Allow ALL cross origin requests to WordPress REST API
https://github.com/Shelob9/rest-all-cors
WordPress theme using Rest API and Vue.js
https://github.com/rtCamp/VueTheme
WordPress Post from Front End using REST API and Vue.js
http://jimfrenette.com/2017/01/post-from-front-end-wp-api-vuejs/
An offline-first SPA using Vue.js, the WordPress REST API and Progressive Web Apps
View gitcheats.txt
# shortform git commands
alias g='git'
# pretty tab'd git log
git log --graph --pretty="tformat:%h*(%ar)*<%an>*%d %s" $* | sed -Ee 's/(^[^<]*) ago\)/\1)/' | sed -Ee 's/(^[^<]*), [[:digit:]]+ .*months?\)/\1)/' | column -s '*' -t | cat
# change author of all git repos
git filter-branch -f --env-filter "GIT_AUTHOR_NAME='yourname'; GIT_AUTHOR_EMAIL='youremail@example.com'; GIT_COMMITTER_NAME='yourname'; GIT_COMMITTER_EMAIL='youremail@example.com';" HEAD;
# stage only deleted files
You can’t perform that action at this time.