Skip to content

Instantly share code, notes, and snippets.

@rduplain
rduplain / zwave-js-zooz-zen32.yaml
Last active December 28, 2022 23:22 — forked from Matt-PMCT/ZoozZen32forZwaveJs.yaml
Zooz ZEN32 for Z-Wave JS integration
# Copied from blhoward2 at https://community.home-assistant.io/t/zen32-scene-controller-z-wave-js/292610/8?u=mattmattmattmatt
# Modified by MattMattMattMatt for clarity on button / scene associations.
blueprint:
name: ZEN32 (Z-Wave JS)
description: Create automations for the Zooz ZEN32 switch using the Z-Wave JS integration.
domain: automation
input:
zooz_switch:
name: Zooz Switch
description: List of available Zooz ZEN32 switches.
@rduplain
rduplain / responsive_d3_example.html
Created April 18, 2012 14:55 — forked from mattalcock/responsive_d3_example.html
Responsive d3.js D3 Javascript Histogram Example
<!DOCTYPE html>
<script src="http://mbostock.github.com/d3/d3.v2.js?2.8.1"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<style>
body {
font: 10px sans-serif;
}
rect {
@rduplain
rduplain / gist:2017517
Created March 11, 2012 18:19 — forked from ask/gist:2014539
celery consumer service using boot-steps.
from celery import abstract
from celery import current_app
from kombu import Exchange, Queue
from kombu.mixins import ConsumerMixin
# need to subclass the result backend so that it uses a topic exchange
# instead of direct, and send the results for tasks using a routing_key
# of the format: