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
{ | |
"Regions": [ | |
"East Midlands", | |
"East of England", | |
"London", | |
"North East", | |
"North West", | |
"South East", | |
"South West", | |
"West Midlands", |
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
{ | |
"Regions": [ | |
"East Midlands", | |
"East of England", | |
"London", | |
"North East", | |
"North West", | |
"South East", | |
"South West", | |
"West Midlands", |
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
use Laravel\Horizon\Contracts\MasterSupervisorRepository; | |
... | |
protected function isHorizonActive() : bool | |
{ | |
if (! $masters = app(MasterSupervisorRepository::class)->all()) { | |
return false; | |
} | |
return collect($masters)->some(function ($master) { | |
return $master->status !== 'paused'; |
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\Http\Controllers; | |
use Illuminate\Http\Request; | |
use Illuminate\Support\Arr; | |
use PhpOffice\PhpWord\Element\Section; | |
use PhpOffice\PhpWord\Element\Text; | |
use PhpOffice\PhpWord\Element\TextBreak; | |
use PhpOffice\PhpWord\Element\TextRun; |
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
<x-heroicon-s-refresh wire:target="$refresh" wire:loading.class="animate-reverse-spin" class="-ml-0.5 mr-2 h-5 w-5"/> | |
{{-- OR (without editing the config file just do this)--}} | |
<x-heroicon-s-refresh wire:target="$refresh" wire:loading.class="animate-spin transform rotate-180" class="-ml-0.5 mr-2 h-5 w-5"/> |
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
# Apache configuration file | |
# httpd.apache.org/docs/2.2/mod/quickreference.html | |
# Note .htaccess files are an overhead, this logic should be in your Apache | |
# config if possible: httpd.apache.org/docs/2.2/howto/htaccess.html | |
# Techniques in here adapted from all over, including: | |
# Kroc Camen: camendesign.com/.htaccess | |
# perishablepress.com/press/2006/01/10/stupid-htaccess-tricks/ | |
# Sample .htaccess file of CMS MODx: modxcms.com |
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
/** | |
* Bootstrap any application services. | |
* | |
* @return void | |
*/ | |
public function boot() | |
{ | |
Component::macro('notify', function ($message, $title = '', $type = 'success') { | |
$this->dispatchBrowserEvent('notify', ['message' => $message, 'title' => $title, 'type' => $type]); | |
}); |
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 urllib | |
from wordpress_xmlrpc import Client, WordPressPost | |
from wordpress_xmlrpc.methods import posts | |
import xmlrpclib | |
from wordpress_xmlrpc.compat import xmlrpc_client | |
from wordpress_xmlrpc.methods import media, posts | |
import os | |
########################### Read Me First ############################### | |
''' | |
------------------------------------------In DETAIL-------------------------------- |