- llms-full.txt - All docs files except migrations docs
- llms-small.txt - Excludes examples
- llms-tiny.txt - Includes only the main docs
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
name: 'Bundle Size Comparison' | |
on: | |
pull_request: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest |
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
/// <reference types="@sveltejs/kit" /> | |
/// <reference no-default-lib="true"/> | |
/// <reference lib="esnext" /> | |
/// <reference lib="webworker" /> | |
// https://kit.svelte.dev/docs/service-workers#type-safety | |
const sw = self as unknown as ServiceWorkerGlobalScope; | |
import { build, files, version } from '$service-worker'; |
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
// Example: <div use:focused={(e) => console.log('Focused, event:', e)}> | |
export default function focused(node: HTMLElement, callback: Function) { | |
const handleFocusEvents = (event: Event) => { | |
callback(event) | |
}; | |
window.addEventListener('online', handleFocusEvents); | |
window.addEventListener('focus', handleFocusEvents); |
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
node_modules | |
README.md | |
.svelte-kit | |
npm-debug.log* | |
yarn-debug.log* | |
yarn-error.log* | |
.pnpm-debug.log* | |
.env*.local | |
.env.local | |
.env |
This is an example implementation of DiceBear Avatars for WordPress comments.
You can see a demo for this plugin at the bottom of this post:
https://unwanted.cloud/2022/09/24/nanoleaf-privacy-review/
Screenshot:
https://snippets.khromov.se/wp-content/uploads/2022/09/dicebear-avatars.png
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 | |
/* | |
Plugin Name: Plugin | |
Version: 1.0 | |
*/ | |
add_action('acf/init', function() { | |
// Check function exists. | |
if( function_exists('acf_register_block_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
// ==UserScript== | |
// @name Find slot | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Book a Förarprov with the place and type (manual/auto) that you want, then go to Boka Prov > Personbil B > Bokade Prov > Press the edit icon for the existing test. Enable the script and reload the page. The script will look for a better time in the same configuration of auto/manual and location. | |
// @author You | |
// @match https://fp.trafikverket.se/boka/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=trafikverket.se | |
// @require https://cdnjs.cloudflare.com/ajax/libs/ion-sound/3.0.7/js/ion.sound.min.js | |
// @grant none |
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 | |
add_action('init', function() { | |
// For which posts type | |
$post_type_object = get_post_type_object( 'post' ); | |
// Which allowed blocks | |
$post_type_object->template = [ | |
['core/heading', ['level' => '5', 'content' => 'Default value']], | |
['core/paragraph'], | |
['core/image'], |
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 | |
add_filter( 'allowed_block_types_all', function($allowed_block_types, $block_editor_context) { | |
if ( $block_editor_context->post->post_type === 'post' ) { | |
return [ | |
'acf/my-cool-block', | |
'core/paragraph' | |
]; | |
} | |
return $allowed_block_types; | |
}, 10, 2 ); |
NewerOlder