Skip to content

Instantly share code, notes, and snippets.

@tgrowden
tgrowden / yet_another_motion_automation.yaml
Last active July 16, 2022 18:31 — forked from networkingcat/yet_another_motion_automation.yaml
Homeassistant blueprint for motion-activated light scene
blueprint:
name: "Yet Another Motion Automation"
description: >
# YAMA V10
Turn on lights or scenes when motion is detected.
Four different scenes can be defined depending on time of day.
@tgrowden
tgrowden / fireplace.sh
Created March 8, 2019 21:17
create a fireplace in your terminal!
#!/usr/bin/env/bash
t(){ tput $@;};for((;;));{ t cup 0 0;l=();x=`t cols`;for((r=0;r<`t lines`;r++));{ for((c=0;c<x;c++));{ i=$[c+RANDOM%3-1];d=$[${l[i>=x?x-1:(i>=0?i:0)]:-0}+RANDOM%2];l[c]=$d;printf "\033[48;5;$[d>10?0:d>5?160-(d-6)*36:226-d*6]m \033[0m";};};sleep .1;}
@tgrowden
tgrowden / lint-css.js
Last active August 17, 2018 14:59
Lint css files in a directory using doiuse
/* eslint no-console: 0 */
const doiuse = require('doiuse/stream')
const fs = require('fs')
const path = require('path')
const colors = {
reset: '\x1b[0m',
black: '\x1b[30m',
red: '\x1b[31m',
green: '\x1b[32m',

Keybase proof

I hereby claim:

  • I am tgrowden on github.
  • I am tgrowden (https://keybase.io/tgrowden) on keybase.
  • I have a public key ASBE1YUfFwq2lH_yQB0t0cbaAObogCtktAKCxW-o5h5Szgo

To claim this, I am signing this object: