Skip to content

Instantly share code, notes, and snippets.


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 / gutenberg.txt
Last active May 13, 2020
Gutenberg Resources
View gutenberg.txt
Using Gutenberg Block Variations in the WordPress Block Editor
How to Turn off / Disable Unneeded WooCommerce Gutenberg blocks
How to add anchor support to Gutenberg blocks
How to test your Gutenberg blocks with Jest and Puppeteer
chrismccoy / restapi.txt
Last active Apr 15, 2020
WordPress REST API Resources
View restapi.txt
Allow ALL cross origin requests to WordPress REST API
WordPress theme using Rest API and Vue.js
WordPress Post from Front End using REST API and Vue.js
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=''; GIT_COMMITTER_NAME='yourname'; GIT_COMMITTER_EMAIL='';" HEAD;
# stage only deleted files
You can’t perform that action at this time.