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
blueprint: | |
name: Motion-activated Light | |
description: Turn on a light when motion is detected. | |
domain: automation | |
source_url: https://github.com/home-assistant/core/blob/dev/homeassistant/components/automation/blueprints/motion_light.yaml | |
input: | |
motion_entity: | |
name: Trigger Sensor | |
selector: | |
entity: |
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 | |
/** | |
* Adds a webp image to the srcset if available in the media-library. | |
* | |
* @param string $post_id | |
* @param array $args | |
* @return string — Image markup. | |
*/ | |
function abe_get_picture_source( $post_id = 0, $args = [] ): string { | |
$post_id = $post_id ?: get_the_ID(); |
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
/** | |
* External Dependencies | |
*/ | |
// import classnames from 'classnames'; | |
/** | |
* WordPress Dependencies | |
*/ | |
import { addFilter } from '@wordpress/hooks'; | |
import { Fragment } from '@wordpress/element'; |
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
*, | |
::before, | |
::after { | |
box-sizing: border-box; | |
background-repeat: no-repeat; | |
color: inherit; | |
font-size: inherit; | |
font-weight: inherit; | |
font-family: inherit; | |
line-height: inherit; |
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
root = true | |
[*] | |
charset = utf-8 | |
end_of_line = lf | |
indent_style = tab | |
insert_final_newline = true | |
trim_trailing_whitespace = true | |
#indent_size = 4 |
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
/** | |
* Copyright (c) Nicolas Gallagher. | |
* | |
* This source code is licensed under the MIT license found in the | |
* LICENSE file in the root directory of this source tree. | |
* | |
* @flow strict-local | |
*/ | |
type Groups = { [key: number]: Array<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
<!-- wp:heading --> | |
<h2>You're looking at an (H2)</h2> | |
<!-- /wp:heading --> | |
<!-- wp:heading {"level":3} --> | |
<h3>You're looking at an (H3)</h3> | |
<!-- /wp:heading --> | |
<!-- wp:heading {"level":4} --> | |
<h4>You're looking at an (H4)</h4> |
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
@keyframes fade-in { | |
0% { | |
opacity: 0; | |
} | |
to { | |
opacity: 1; | |
} | |
} | |
@keyframes editor_region_focus { | |
0% { |
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 | |
$string = $gv_entry->entry['30']; | |
// Remove brackets. | |
$string = trim( $string, '[]' ); | |
$post_ids = array_map( | |
function( $string_id ) { | |
// Remove quotes around IDs. |
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
# If you come from bash you might have to change your $PATH. | |
export PATH=$HOME/bin:/usr/local/bin:$PATH | |
export ZSH="/home/marty/.oh-my-zsh" | |
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(status custom_meh dir vcs) | |
POWERLEVEL9K_PROMPT_ON_NEWLINE=true | |
POWERLEVEL9K_RPROMPT_ON_NEWLINE=true | |
POWERLEVEL9K_PROMPT_ADD_NEWLINE=true | |
POWERLEVEL9K_CUSTOM_MEH="echo '\uf11a' meh" |
NewerOlder