Skip to content

Instantly share code, notes, and snippets.

chrismccoy / gutenberg.txt
Last active Apr 6, 2021
Gutenberg Resources
View gutenberg.txt
Getting Started with Block Themes: Patterns
WordPress Blocks Backwards Compatibility
Stylin’ WordPress Gutenberg Columns Block
Gutenberg Components and Invalid Hook Call Error in React
chrismccoy / restapi.txt
Last active Apr 6, 2021
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'
# show contents of all git objects in a git repo
find .git/objects/ -type f \| sed 's/\.git\/objects\/\///' | sed 's/\///g' | xargs -n1 -I% echo echo "%" \$\(git cat-file -p "%"\) \0 | xargs -n1 -0 sh -c
# push all branches to all remotes
git remote | xargs -L1 git push --all
# count lines of .js code in a repo