This file contains 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
! Add this to the uBlock Origin "My filters" | |
login.wordpress.org##+js(click-element, #pineapple) | |
login.wordpress.org##.login-pineapple |
This file contains 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 Valet\Drivers\Specific\WordPressValetDriver; | |
class LocalValetDriver extends WordPressValetDriver | |
{ | |
/** | |
* Get the fully resolved path to the application's front controller. | |
*/ | |
public function frontControllerPath(string $sitePath, string $siteName, string $uri): ?string |
This file contains 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 Valet\Drivers\Custom; | |
use Valet\Drivers\Specific\WordPressValetDriver; | |
class MultisiteValetDriver extends WordPressValetDriver | |
{ | |
/** | |
* Get the fully resolved path to the application's front controller. |
This file contains 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
export function Debounce (fn: Function, wait = 200) { | |
let timerId: number | |
let lastArgs: Array<any> | undefined | |
let lastCallTime: DOMHighResTimeStamp | |
let lastThis | |
let result | |
const startTimer = (pendingFunc: FrameRequestCallback) => { | |
cancelAnimationFrame(timerId) | |
return requestAnimationFrame(pendingFunc) | |
} |
This file contains 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 { SwiperInstance, SwiperPlugin } from '../core/index' | |
import { Options } from '../core/options' | |
export default <SwiperPlugin>function SwiperPluginBreakpoints ( | |
instance: SwiperInstance, | |
options: Options, | |
) { | |
const isEnabled = Boolean(options.breakpoints) | |
if (!isEnabled) return |
This file contains 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\Jobs; | |
use Illuminate\Support\Arr; | |
use Illuminate\Support\Collection; | |
use Spatie\ResponsiveImages\Jobs\GenerateImageJob; | |
class GenerateImageKitJob extends GenerateImageJob | |
{ |
This file contains 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
<div x-data="{ show: !localStorage.getItem('hide-popup') }"> | |
<div x-show="show"> | |
<button @click="localStorage.setItem('hide-popup', true); show = false"> | |
close | |
</button> | |
</div> | |
</div> |
This file contains 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\Modifiers; | |
use Illuminate\Support\Str; | |
use Statamic\Modifiers\Modifier; | |
class IsLocalUrl extends Modifier | |
{ | |
/** |
This file contains 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
<div class="size-{{ grid_size }} gap-4 grid | md:grid-cols-12 | xl:gap-6"> | |
{{ assets:images }} | |
<figure class="| md:{{ grid_columns }}"> | |
{{ responsive:url glide:width="1200" :ratio="image_ratio" }} | |
{{ if alt }} | |
<figcaption>{{ alt }}</figcaption> | |
{{ /if }} | |
</figure> | |
{{ /assets:images }} | |
</div> |
This file contains 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
body.debug::before { | |
@apply .bg-gray-900; | |
@apply .fixed; | |
@apply .font-mono; | |
@apply .leading-none; | |
@apply .left-0; | |
@apply .pointer-events-none; | |
@apply .px-2; | |
@apply .py-1; | |
@apply .text-white; |
NewerOlder