I set up the wiki page for the valet-wsl project and moved the install guide there. This way it can have user contributions. Please have all disscussions or issues under the valet-wsl project so I can be aware of it. Please go to Valet Wsl Installation Guide
In your command-line run the following commands:
brew doctorbrew update
Snippets frequently used with Sage
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace App\Providers; | |
| use Roots\Acorn\ServiceProvider; | |
| use Illuminate\Support\Str; | |
| use function Roots\view; | |
| class WooCommerceServiceProvider extends ServiceProvider |
Enough people loved this gist, so it's now a Github repository!
⭐ Please use the "The Events Calendar Reset" on Github going forward. ⭐
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace App\Providers; | |
| use Roots\Acorn\ServiceProvider; | |
| class ThemeServiceProvider extends ServiceProvider | |
| { | |
| /** | |
| * Register any application services. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| use function Env\env; | |
| /** | |
| * Plugin Name: PHPMailer SMTP | |
| * Plugin URI: https://roots.io/bedrock/ | |
| * Description: Simple PHPMailer SMTP configuration for Bedrock. | |
| * Version: 1.0.0 | |
| * Author: Roots |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace App\Livewire; | |
| use Livewire\Attributes\Url; | |
| use Livewire\Component; | |
| use WP_Query; | |
| class PostSearch extends Component | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import {JSDOM} from 'jsdom'; // npm i jsdom | |
| function htmlToObj(htmlString) { | |
| const newString = htmlString.replace('<br />','\n') | |
| // string hacks for edge cases | |
| // .replace('<small>','') | |
| // .replace('</small>','') | |
| // .replace('<b>','<strong>') | |
| // .replace('</b>','</strong>'); | |
| const dom = new JSDOM(newString); |