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
<template> | |
<VirtualScroller v-slot="{ item }" :item-height="35" :items="myMassiveArray"> | |
<div :item="item" :key="item.id">{{ item.details.i.guess? }}</div> | |
</VirtualScroller> | |
</template> |
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 Illuminate\Support\Facades\Route; | |
use Illuminate\Support\Str; | |
use Spatie\YamlFrontMatter\YamlFrontMatter; | |
Route::get('{slug?}', function ($slug = 'index') { | |
$path = resource_path('pages/' . $slug . '.md'); | |
if (!file_exists($path)) { |
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
/* | |
* Stripe WebGl Gradient Animation | |
* All Credits to Stripe.com | |
* ScrollObserver functionality to disable animation when not scrolled into view has been disabled and | |
* commented out for now. | |
* https://kevinhufnagl.com | |
*/ |
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 My\Package\Fusion; | |
class EmailObfuscationImplementation extends \Neos\Fusion\FusionObjects\DataStructureImplementation | |
{ | |
const MAILTO_REGEX = '/<a(.*?)href="mailto:(.+?)"(.*?)>(.*?)<\/a>/i'; | |
/** | |
* Get the glue to insert between items |
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
/vendor | |
/docker | |
/Dockerfile |
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 React from 'react'; | |
type Props = { | |
data: Array<[number, string]>; | |
}; | |
export default function LineChart({ data }: Props) { | |
if (!data.length) { | |
return null; | |
} |
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 Test\BeModule\Controller; | |
use Neos\Flow\Annotations as Flow; | |
use Neos\Flow\Mvc\View\ViewInterface; | |
use Neos\Fusion\View\FusionView; | |
use Neos\Neos\Controller\Module\AbstractModuleController; | |
class ExampleController extends AbstractModuleController | |
{ |
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
var paths = [ | |
["Account"], | |
["Account", "Payment Methods"], | |
["Account", "Payment Methods", "Credit Card"], | |
["Account", "Payment Methods", "Paypal"], | |
["Account", "Emails"], | |
["Account", "Emails", "Main Email"], | |
["Account", "Emails", "Backup Email"], | |
["Account", "Devices"], | |
["Account", "Devices", "Google Pixel"], |
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 Flowpack\FusionBP\FusionObjects; | |
use Neos\Flow\Annotations as Flow; | |
use Neos\Flow\Mvc\ActionRequest; | |
use Neos\Fusion\FusionObjects\TemplateImplementation as OriginalTemplateImplementation; | |
use Neos\Fusion\FusionObjects\Helpers as Helpers; | |
use Neos\FluidAdaptor\Core\Parser\Interceptor\ResourceInterceptor; | |
use TYPO3Fluid\Fluid\Core\Parser\InterceptorInterface; |
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
// ts 3.6x | |
function debounce<T extends Function>(cb: T, wait = 20) { | |
let h = 0; | |
let callable = (...args: any) => { | |
clearTimeout(h); | |
h = setTimeout(() => cb(...args), wait); | |
}; | |
return <T>(<any>callable); | |
} |
NewerOlder