This file will setup Wordpress, MySQL & PHPMyAdmin with a single command. Add the code below to a file called "docker-compose.yaml" and run the command
$ docker-compose up -d
# To Tear Down
$ docker-compose down --volumes
| <?php | |
| namespace App\Classes\Database; | |
| use Illuminate\Database\Query\Builder; | |
| use Illuminate\Support\Arr; | |
| class CustomBuilder extends Builder | |
| { | |
| public function insertOrUpdate(array $values) |
| import argparse | |
| import sys | |
| import os | |
| import json | |
| import logging | |
| import pickle | |
| ############################################ NOTE ######################################################## | |
| # |
| <template> | |
| <div id="app"> | |
| <!-- <img src="./assets/logo.png"> | |
| <HelloWorld msg="Welcome to Your Vue.js App"/> --> | |
| <div class="reveal"> | |
| <div class="slides"> | |
| <section>Single Horizontal Slide</section> | |
| <section> | |
| <section>Vertical Slide 1</section> | |
| <section>Vertical Slide 2</section> |
When you're working on multiple coding projects, you might want a couple different version of Python and/or modules installed. That way you can keep each project in its own sandbox instead of trying to juggle multiple projects (each with different dependencies) on your system's version of Python. This intermediate guide covers one way to handle multiple Python versions and Python environments on your own (i.e., without a package manager like conda). See the Using the workflow section to view the end result.
| <?php | |
| namespace Tests\Concerns; | |
| use App\Models\User; | |
| use Tymon\JWTAuth\Facades\JWTAuth; | |
| trait AttachJwtToken | |
| { | |
| /** |
| /* | |
| * Handling Errors using async/await | |
| * Has to be used inside an async function | |
| */ | |
| try { | |
| const response = await axios.get('https://your.site/api/v1/bla/ble/bli'); | |
| // Success 🎉 | |
| console.log(response); | |
| } catch (error) { | |
| // Error 😨 |
| <?php | |
| namespace App\Providers; | |
| use Illuminate\Support\ServiceProvider; | |
| class GoogleDriveServiceProvider extends ServiceProvider | |
| { | |
| /** | |
| * Bootstrap the application services. |