[ ] Do you have a preferred grid system? || I'd like to use this grid system.
[ ] What fonts do we have available to us? || I'd like to use this font (and include a URL).
Checklist before Handoff to Development
| # ----------------------------------------------------------------- | |
| # .gitignore for WordPress @salcode | |
| # ver 20180808 | |
| # | |
| # From the root of your project run | |
| # curl -O https://gist.githubusercontent.com/salcode/b515f520d3f8207ecd04/raw/.gitignore | |
| # to download this file | |
| # | |
| # By default all files are ignored. You'll need to whitelist | |
| # any mu-plugins, plugins, or themes you want to include in the repo. |
| # ----------------------------------------------------------------- | |
| # .gitignore | |
| # Bare Minimum Git | |
| # https://salferrarello.com/starter-gitignore-file/ | |
| # ver 20221125 | |
| # | |
| # From the root of your project run | |
| # curl -O https://gist.githubusercontent.com/salcode/10017553/raw/.gitignore | |
| # to download this file | |
| # |
| # ----------------------------------------------------------------- | |
| # .gitignore for WordPress | |
| # Bare Minimum Git | |
| # http://ironco.de/bare-minimum-git/ | |
| # ver 20150227 | |
| # | |
| # This file is tailored for a WordPress project | |
| # using the default directory structure | |
| # | |
| # This file specifies intentionally untracked files to ignore |
| # based on http://www.commandlinefu.com/commands/view/2916/backup-all-mysql-databases-to-individual-files | |
| # but modified for the MAMP path and to include default root/root as username and password | |
| for I in $(/Applications/MAMP/Library/bin/mysql -u root -proot -e 'show databases' -s --skip-column-names); do /Applications/MAMP/Library/bin/mysqldump -u root -proot $I | gzip > "$I.sql.gz"; done |
| <?php | |
| /** | |
| * Prevent top level permalink slugs that will cause conflicts. | |
| * | |
| * New rewrite slugs are introduced when CPTs or Custom Taxonomies are created. | |
| * This code adds a check when Pages or Posts are created, that their Permalink | |
| * does not conflict with one of the reserved top level slugs you define. | |
| * | |
| * In the case of a bad (i.e conflicting slug), WordPress appends a "-2" to | |
| * the permalink. |
| // Note: This is an improved version provided by @laurentmuller in the comments below. | |
| // removes all data attributes from a target element | |
| // example: removeDataAttributes('#user-list'); | |
| function removeDataAttributes(target) { | |
| var $target = $(target); | |
| // Loop through data attributes. | |
| $.each($target.data(), function (key) { | |
| // Because each key is in camelCase, |
| # Current branch - Determine current git branch, store in $currentbranch, and exit if not on a branch | |
| if ! currentbranch=$(git symbolic-ref --short -q HEAD) | |
| then | |
| echo We are not currently on a branch. | |
| exit 1 | |
| fi | |
| # Uncommited Changes - Exit script if there uncommited changes | |
| if ! git diff-index --quiet HEAD --; then | |
| echo "There are uncommited changes on this repository." |
| # Add this code to .zshrc after nvm initialization code. | |
| # | |
| # Check the current directory for a package.json file | |
| # If the node version is defined (at .engines.node) | |
| # run "nvm use" for the node version. | |
| # | |
| # If there is not a node version defined with package.json, | |
| # run "nvm use default" | |
| # Version: 20230112 | |
| # |
| import titleCase from '.'; | |
| const data = [ | |
| { | |
| value: 'lord of the flies', | |
| expected: 'Lord of the Flies', | |
| }, | |
| { | |
| value: 'once upon a time', | |
| expected: 'Once Upon a Time', |