Skip to content

Instantly share code, notes, and snippets.

View andersonimes's full-sized avatar

Anderson Imes andersonimes

  • Databricks
  • Amsterdam, The Netherlands
  • 04:12 (UTC +02:00)
View GitHub Profile
@andersonimes
andersonimes / gist:3037067
Created July 3, 2012 02:05
[Rx]Event rate smoothing operator called "StepInterval"
//Source: http://stackoverflow.com/a/11285920/3244
public static IObservable<T> StepInterval<T>(this IObservable<T> source, TimeSpan minDelay)
{
return source.Select(x =>
Observable.Empty<T>()
.Delay(minDelay)
.StartWith(x)
).Concat();
}
@andersonimes
andersonimes / gist:3be2aacff5191bd9695079f41fb0c00f
Created November 12, 2022 22:04
Error Log for Node Red / Home Assistant
(1/7) Installing libbz2 (1.0.8-r1)
(2/7) Installing libffi (3.4.2-r1)
(3/7) Installing gdbm (1.23-r0)
(4/7) Installing xz-libs (5.2.5-r1)
(5/7) Installing mpdecimal (2.5.1-r1)
(6/7) Installing sqlite-libs (3.38.5-r0)
(7/7) Installing python3 (3.10.8-r0)
Executing busybox-1.35.0-r17.trigger
OK: 159 MiB in 51 packages
ERROR: unable to select packages:
@andersonimes
andersonimes / voicemail.yaml
Last active February 21, 2025 23:42
Blueprint for a Home Assistant voicemail automation for Technithusiast
blueprint:
name: Voicemail Reminder Automation
description: If you have uncompleted items on a to-do list when occupancy is detected, announce it on a speaker.
domain: automation
input:
occupancy_sensor:
name: Occupancy Binary Sensor
description: You can use any sensor as an occupancy sensor as long as it's a binary sensor
selector:
entity:
blueprint:
name: Moisture Sensor
description: Perform action when moisture sensor turns wet
domain: automation
input:
actions:
name: Actions
description: Notifications or similar to be run.
{{ trigger.event.data.new_state.attributes.friendly_name }} will be the name of the
sensor