type below:
brew update
brew install redis
To have launchd start redis now and restart at login:
brew services start redis
| <?php | |
| /** | |
| * A helper file for Laravel 5, to provide autocomplete information to your IDE | |
| * Generated for Laravel 5.5.13 on 2017-09-28. | |
| * | |
| * @author Barry vd. Heuvel <[email protected]> | |
| * @see https://github.com/barryvdh/laravel-ide-helper | |
| */ | |
| namespace { | |
| exit("This file should not be included, only analyzed by your IDE"); |
| <?php | |
| add_action( 'edit_terms', 'example_terms_edit' ); | |
| function example_terms_edit( $term_id ){ | |
| global $wpdb; | |
| global $example_old_slug; | |
| $example_old_slug = $wpdb->get_var( $wpdb->prepare( "SELECT slug FROM $wpdb->terms WHERE term_id = %d", $term_id ) ); | |
| } |
| #!/bin/bash | |
| # Sometimes you need to move your existing git repository | |
| # to a new remote repository (/new remote origin). | |
| # Here are a simple and quick steps that does exactly this. | |
| # | |
| # Let's assume we call "old repo" the repository you wish | |
| # to move, and "new repo" the one you wish to move to. | |
| # | |
| ### Step 1. Make sure you have a local copy of all "old repo" | |
| ### branches and tags. |
| // An `Object.observe()` "polyfill" using ES6 Proxies. | |
| // | |
| // Current `Object.observe()` polyfills [1] rely on polling | |
| // to watch for property changes. Proxies can do one better by | |
| // observing property changes to an object without the need for | |
| // polling. | |
| // | |
| // Known limitations of this technique: | |
| // 1. the call signature of `Object.observe()` will return the proxy | |
| // object. The original object needs to be overwritten with this return value. |
type below:
brew update
brew install redis
To have launchd start redis now and restart at login:
brew services start redis