Skip to content

Instantly share code, notes, and snippets.

blueprint:
name: Double-toggle light → 100% brightness
description: >
When a selected light is toggled twice within a short window, set that same
light to 100% brightness.
domain: automation
input:
target_lights:
name: Lights to watch
description: One or more light entities that you physically toggle.
blueprint:
name: Double-toggle light → 100% brightness
description: >
When a selected light is toggled twice within a short window, set that same
light to 100% brightness.
domain: automation
input:
target_lights:
name: Lights to watch
description: One or more light entities that you physically toggle.
{#
This overrides the default source() macro to include the option
for using BigQuery's time travel functionality. This allows for
for full refreshes in dev to query a source table at an earlier
point-in-time, so that subsequent incremental runs can be tested
in a more realistic manner.
#}
{% macro source(source_name, table_name) %}
@jgillies
jgillies / yaml.snippets
Created November 20, 2018 15:38
Vim UltiSnips snippets file for dbt docs
snippet cols "Creates dbt column documentation" b
- name: $1
description: $2
${3:tests:}
endsnippet
@jgillies
jgillies / dbt.snippets
Last active February 15, 2019 17:17
Vim UltiSnips snippets file for dbt
" adapted from https://github.com/fishtown-analytics/atom-dbt/blob/master/snippets/atom-jinja2.cson
snippet config "dbt config block" b
\{\{
config(
materialized = "$1",
sort = "$2",
dist = "$3"
)
\}\}