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
# source: https://community.home-assistant.io/t/zha-philips-hue-dimmer-switch-rwl021-the-fast-easy-way/461969 | |
# No device limitations | |
blueprint: | |
domain: automation | |
name: Controlling lights using Philips Hue Dimmer Switch (RWL021) | |
description: Take the swith fast into use with pre-set configuration. | |
input: | |
zha_device: | |
name: Philips Hue Dimmer Switch (RWL021 only) | |
description: The swith to be taken into use. |
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 | |
/** | |
* Add has-\d-columns class to columns blocks after 5.3 update. | |
* | |
* @param string $block_content The block content about to be appended | |
* @param array $block The full block, including name and attributes | |
* @return string The updated block content | |
*/ | |
add_filter( 'render_block_core/columns', function( $block_content, $block ) { | |
$columns_count = count( $block['innerBlocks'] ); |
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 wcf\system\cache\builder; | |
use DateTime; | |
use wcf\data\visitor\Visitor; | |
use \wcf\system\WCF; | |
use wcf\util\StringUtil; | |
use function array_merge; | |
use function date_diff; | |
use function round; | |
use const TIME_NOW; |
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 wcf\system\box; | |
use wcf\system\cache\builder\VisitorCacheBuilder; | |
use wcf\system\WCF; | |
use function array_merge; | |
use function count; | |
use function ucfirst; | |
/** | |
* Implementation of IBoxController for visits. |
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 | |
/** | |
* Configuration | |
*/ | |
$filename = 'compressed.zip'; | |
$path = '/path/to/store'; | |
// special case for ALL-INKL | |
// $path = preg_replace( '/(\/www\/htdocs\/\w+\/).*/', '$1', realpath( __FILE__ ) ) . 'subdir'; |
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
{ | |
"settings": { | |
"defaults": { | |
"color": { | |
"palette": [ | |
{ | |
"slug": "pale-turquoise", | |
"color": "#d1f1f1" | |
} | |
] |
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
<!-- wp:template-part {"slug":"header","theme":"my-theme"} /--> |
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
theme | |
|__ block-templates | |
|__ index.html | |
|__ block-template-parts | |
|__ footer.html | |
|__ header.html | |
|__ experimental-theme.json | |
|__ functions.php | |
|__ index.php | |
|__ style.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
// Variables used by Scriptable. | |
// These must be at the very top of the file. Do not edit. | |
// icon-color: deep-gray; icon-glyph: magic; | |
// Licence: Robert Koch-Institut (RKI), dl-de/by-2-0 | |
// | |
// ------------- | |
// Configuration | |
// ------------- |
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
// Variables used by Scriptable. | |
// These must be at the very top of the file. Do not edit. | |
// icon-color: deep-gray; icon-glyph: magic; | |
// Licence: Robert Koch-Institut (RKI), dl-de/by-2-0 | |
// | |
// ------------- | |
// Configuration | |
// ------------- |