cd coding-directorynpm init -ynpm install --save-dev --save-exact eslint eslint-config-airbnb-base eslint-plugin-import- Create
.eslintrcfile with following content:
{
"extends": "airbnb-base",
"env": {
"browser": true,
"node": truecd coding-directorynpm init -ynpm install --save-dev --save-exact eslint eslint-config-airbnb-base eslint-plugin-import.eslintrc file with following content:{
"extends": "airbnb-base",
"env": {
"browser": true,
"node": truehttps instead of http| #target photoshop | |
| /* Open the given file, and compress with TinyPNG. */ | |
| function compressFile(file) { | |
| var document = open(file); | |
| if (document.mode == DocumentMode.INDEXEDCOLOR) { | |
| document.changeMode(ChangeMode.RGB); | |
| } |
| <?php | |
| /* Example Usage: | |
| * bt_add_image_size( 'product-screenshot', 300, 300, array( 'left', 'top' ) ); | |
| * bt_add_image_size( 'product-feature', 460, 345, array( 'center', 'top' ) ); | |
| */ | |
| add_filter( 'intermediate_image_sizes_advanced', 'bt_intermediate_image_sizes_advanced' ); | |
| add_filter( 'wp_generate_attachment_metadata', 'bt_generate_attachment_metadata', 10, 2 ); | |
| /** |