Be aware the following shortcuts are only working, if you have the plugins installed mentioned below.
:w Save file
:w filename Save file under new filename
"use strict"; | |
// Load plugins | |
const autoprefixer = require("autoprefixer"); | |
const browsersync = require("browser-sync").create(); | |
const cp = require("child_process"); | |
const cssnano = require("cssnano"); | |
const del = require("del"); | |
const eslint = require("gulp-eslint"); | |
const gulp = require("gulp"); |
<?php | |
/** | |
* Add Registration Date as a sortable column for users | |
*/ | |
class NH_User_Registration_Column { | |
function __construct() { | |
add_filter( 'manage_users_columns', array($this, 'manage_users_columns') ); | |
add_filter( 'manage_users_custom_column', array($this, 'manage_users_custom_column'), 10, 3 ); | |
add_filter( 'manage_users_sortable_columns', array($this, 'manage_users_sortable_columns') ); |
Vue.js is an amazing framework, which can be as powerful as Angular or React, the two big heavy hitters in the world of front-end frameworks.
However, most of Vue's ease-of-use is due to the use of Observables - a pattern that triggers re-renders and other function calls with the reassignment of a variable.
Most recently tested on macOS Sierra (10.12.6)
curl https://bootstrap.pypa.io/get-pip.py -o ~/Downloads/get-pip.py
--user
flag; python ~/Downloads/get-pip.py --user
. pip will be installed to ~/Library/Python/2.7/bin/pip~/Library/Python/2.7/bin
is in your $PATH
. For bash
users, edit the PATH=
line in ~/.bashrc
to append the local Python path; ie. PATH=$PATH:~/Library/Python/2.7/bin
. Apply the changes, source ~/.bashrc
.--user
when installing modules; ie. pip install <package_name> --user
FWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on news.ycombinator.com. Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.
This content from this markdown file has moved a new, happier home where it can serve more people. Please check it out : https://docs.microsoft.com/azure/azure-cache-for-redis/cache-best-practices.
npm scripts
are low-level and leverage the actual library you want to use (example: "lint": "eslint ./"
)package.json
is a central place to see what scripts are available (also npm run
will list all scripts)"complex-script": "babel-node tools/complex-script.js"
)npm scripts
are more powerful than one might first think (pre/post hooks, passing arguments, config variables, chaining, piping, etc...)