Skip to content

Instantly share code, notes, and snippets.

View lucasreiners's full-sized avatar

Lucas Reiners lucasreiners

  • Schwerin, Germany
View GitHub Profile
blueprint:
name: ZHA - Philips Hue Dimmer Switch Config - v2024.12.09
description: |
Control lights with a Philips Hue Dimmer Switch
domain: automation
source_url: https://gist.github.com/lucasreiners/59c456f0e05366ec7ce9b3f691ac3b2f
# Define the inputs for the blueprint
@lucasreiners
lucasreiners / hue-remote-dimmer-july-2022.yaml
Last active October 8, 2023 19:32 — forked from lksnyder0/hue-remote-dimmer-january-2022.yaml
Blueprint to create Home Assistant automations based on Hue Remote Dimmer Button Press/Holds (created using the RWL020 dimmer)
blueprint:
name: Hue Dimmer Remote With Hold and Initial Press
description: |
(Jul 2022 Update) Using a Hue bridge with which a dimmer remote is paired, allows you to configure actions based on said Hue Dimmer Remote
NOTE: tested with RWL020 but may also work with RWL021
domain: automation
source_url: https://gist.github.com/lksnyder0/6ad7bd5db9201f1c26019beb8bbb0ee7
input:
dimmer_device:
name: Dimmer Remote Device
"use strict";
var page = require('webpage').create(),
system = require('system'),
address, output, size, pageWidth, pageHeight;
function takeScreenshot(){
if (system.args.length < 3 || system.args.length > 5) {
console.log('Usage: rasterize.js URL filename [paperwidth*paperheight|paperformat] [zoom]');
console.log(' paper (pdf output) examples: "5in*7.5in", "10cm*20cm", "A4", "Letter"');
console.log(' image (png/jpg output) examples: "1920px" entire page, window width 1920px');
@lucasreiners
lucasreiners / BerlinPostalCodes.json
Last active March 13, 2017 08:58
Berlin postal codes as GeoJson
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@lucasreiners
lucasreiners / keybase.md
Created April 18, 2016 09:20
keybase.md

Keybase proof

I hereby claim:

  • I am lucasr93 on github.
  • I am reiners (https://keybase.io/reiners) on keybase.
  • I have a public key ASDsmz0HlhQGq1jNK-0dehK3xq5Yq_WHN9Odah9cjJVNjQo

To claim this, I am signing this object:

import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Canvas;
import android.graphics.Rect;
import android.graphics.drawable.Drawable;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.util.AttributeSet;
import android.view.View;