View debounce.ts
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) | |
} |
View breakpoints.js
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 |
View GenerateImageKitJob.php
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 | |
{ |
View close-popup.antlers.html
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> |
View IsLocalUrl.php
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 | |
{ | |
/** |
View _figures.antler.html
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> |
View debug.css
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; |
View embed-pdf.php
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 | |
$copyright = 'Copyright 2020, Acme Inc.'; // copyright info of PDF file | |
$pdfPath = '/document.pdf'; // path to PDF file | |
$pdfTitle = 'Embedded PDF'; // title of PDF document | |
?><!DOCTYPE html> | |
<html lang="en-US"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> |
View ImportFlamingoEntries.php
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
class ImportFlamingoEntries | |
{ | |
public $db; | |
public $form; | |
public $tags; | |
public $track; | |
public $vxcf; | |
public $imported = 0; |
View index.html
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
<!DOCTYPE html> | |
<html class="debug"> | |
<head> | |
<title></title> | |
</head> | |
<body> | |
<section> | |
<div class="container"> | |
<div class="bg-red-100 row"> | |
<div class="bg-blue-100 col p-8 | sm:w-1/2"></div> |
NewerOlder