There are some key values that the time.Parse is looking for.
By changing:
test, err := time.Parse("10/15/1983", "10/15/1983")to
| const bs = require('browser-sync').create(); | |
| const url = require('url'); | |
| const fs = require('fs'); | |
| const path = require('path'); | |
| const PORT = 3300 | |
| const OUTPUT_DIR = './build' | |
| const DEFAULT_FILE = "index.html" | |
| bs.watch(`${OUTPUT_DIR}/**/*.js`, function (event, file) { |
| var fs = require("fs"); | |
| var path = require("path"); | |
| // Config params (relative to where npm/script is called from): | |
| const APP_BASE = './src'; | |
| const ENTRY_FILE = `index.tsx`; | |
| const OUTPUT_DIR = './build'; | |
| const OUTPUT_FILE = 'app.js'; | |
| const IS_DEV = false; | |
| const TARGET = 'es2018'; |
There are some key values that the time.Parse is looking for.
By changing:
test, err := time.Parse("10/15/1983", "10/15/1983")to
| // install | |
| // npm i gulp-cache gulp-imagemin imagemin-pngquant imagemin-zopfli imagemin-mozjpeg imagemin-giflossy -f | |
| // node node_modules/jpegtran-bin/lib/install.js | |
| // node node_modules/gifsicle/lib/install.js | |
| // node node_modules/zopflipng-bin/lib/install.js | |
| // node node_modules/mozjpeg/lib/install.js | |
| // node node_modules/giflossy/lib/install.js | |
| // node node_modules/pngquant-bin/lib/install.js |
| <?php | |
| /** | |
| *Reduce the strength requirement on the woocommerce password. | |
| * | |
| * Strength Settings | |
| * 3 = Strong (default) | |
| * 2 = Medium | |
| * 1 = Weak | |
| * 0 = Very Weak / Anything | |
| */ |
| /* | |
| This script attempts to identify all CSS classes mentioned in HTML but not defined in the stylesheets. | |
| In order to use it, just run it in the DevTools console (or add it to DevTools Snippets and run it from there). | |
| Note that this script requires browser to support `fetch` and some ES6 features (fat arrow, Promises, Array.from, Set). You can transpile it to ES5 here: https://babeljs.io/repl/ . | |
| Known limitations: | |
| - it won't be able to take into account some external stylesheets (if CORS isn't set up) | |
| - it will produce false negatives for classes that are mentioned in the comments. |
| <?php | |
| // In Shopify go to Apps -> Private Apps to get API Key | |
| // List of Redirects under Online Store -> Navigation -> Redirects | |
| $api_key = ""; | |
| $password = ""; | |
| $store_subdomain = ""; // | |
| $shopify_url = "https://" . $api_key . ":" . $password . "@" . $store_subdomain . ".myshopify.com/admin/redirects.json"; | |
| $array_of_redirects = array ( | |
| '[/from-uri]' => '[/to-uri]', | |
| ); |
| function is_blog () { | |
| global $post; | |
| $posttype = get_post_type($post ); | |
| return ( ((is_archive()) || (is_author()) || (is_category()) || (is_home()) || (is_single()) || (is_tag())) && ( $posttype == 'post') ) ? true : false ; | |
| } | |
| Usage: | |
| <?php if (is_blog()) { echo 'You are on a blog page'; } ?> |