Skip to content

Instantly share code, notes, and snippets.

View adamjez's full-sized avatar

Adam Jež adamjez

View GitHub Profile
@adamjez
adamjez / presence_light_blueprint.yaml
Last active December 15, 2024 21:19
Improved presence light blueprint
blueprint:
name: Presence Light
description: Turn on a light when presence is detected.
domain: automation
input:
presence_entity:
name: Presence Sensor
description: Presence sensor device
selector:
entity:
@adamjez
adamjez / presence_light_blueprint.yaml
Last active July 23, 2025 16:58
Home Assistant blueprint for Presence Activated Light automation
blueprint:
name: Presence Light
description: Turn on a light when presence is detected.
domain: automation
input:
presence_entity:
name: Presence Sensor
description: Presence sensor device
selector:
entity:
@adamjez
adamjez / resource-registration-dotvvm.md
Last active January 30, 2018 12:29
Fluent API Interface prototype for resource registration in DotVVM
public static class Program
{
    public static void Main(DotvvmResourceRepository resources)
    {
        // -----------------------------------------
        // ------------------ OLD ------------------
        // -----------------------------------------
        resources.Register("FeatureSamples_Resources_CdnScriptPriority", new ScriptResource {
            Location = new FileResourceLocation("~/Scripts/testResource.js"),
BenchmarkDotNet=v0.10.5, OS=ubuntu 16.04
Processor=Intel Xeon CPU E5-2660 0 2.20GHz, ProcessorCount=2
Frequency=1000000000 Hz, Resolution=1.0000 ns, Timer=UNKNOWN
dotnet cli version=2.0.0-preview2-005905
  [Host]     : .NET Core 4.6.25226.02, 64bit RyuJIT
  DefaultJob : .NET Core 4.6.25226.02, 64bit RyuJIT
BenchmarkDotNet=v0.10.5, OS=ubuntu 16.04
Processor=Intel Xeon CPU E5-2660 0 2.20GHz, ProcessorCount=2
Frequency=1000000000 Hz, Resolution=1.0000 ns, Timer=UNKNOWN
dotnet cli version=1.0.3
  [Host]     : .NET Core 4.6.25009.03, 64bit RyuJIT
  DefaultJob : .NET Core 4.6.25009.03, 64bit RyuJIT