Skip to content

Instantly share code, notes, and snippets.

@ahutchings
ahutchings / auto_lock_door.yaml
Last active April 2, 2024 04:37
Home Assistant Blueprint: Auto-Lock Door
blueprint:
name: Auto-Lock Door
description: "Auto-lock a door when it is closed and unlocked."
domain: automation
source_url: https://gist.github.com/ahutchings/9ec7db38323c2b02db075bd12bf4dcad
input:
door_lock:
name: Door Lock
selector:
entity:
module.exports = {
config: {
// default font size in pixels for all tabs
fontSize: 12,
// font family with optional fallbacks
fontFamily: 'Menlo, "DejaVu Sans Mono", Consolas, "Lucida Console", monospace',
// terminal cursor background color and opacity (hex, rgb, hsl, hsv, hwb or cmyk)
cursorColor: 'rgba(248,28,229,0.8)',
@ahutchings
ahutchings / redux-orm.js
Last active November 20, 2017 19:56
Flow library definition for redux-orm
declare module 'redux-orm' {
/**
* The heart of an ORM, the data model.
*
* The fields you specify to the Model will be used to generate
* a schema to the database, related property accessors, and
* possibly through models.
*
* In each {@link Session} you instantiate from an {@link ORM} instance,
* you will receive a session-specific subclass of this Model. The methods
// ==UserScript==
// @name Autocomplete On
// @namespace http://gist.github.com/481963
// @include https://us.battle.net/login/*
// @include https://wwws.mint.com/*
// @include http://www.verizonwireless.com/b2c/*
// @include https://login.vzw.com/cdsso/public/*
// @include https://login.verizonwireless.com/*
// ==/UserScript==
# use monospaced fonts
font.base=$(font.monospace)
font.small=$(font.monospace)
font.comment=$(font.monospace)
font.text=$(font.monospace)
font.text.comment=$(font.monospace)
font.embedded.base=$(font.monospace)
font.embedded.comment=$(font.monospace)
font.vbs=$(font.monospace)
command.name.1.*.php=PHP_CodeSniffer
command.1.*.php=php c:/scripts/phpcs-scite.php $(FilePath)
cd PROJECT_DIRECTORY
PATH_TO_PHP_CODESNIFFER --tab-width=4 --report=xml . > phpcs.xml
pear install PHP_CodeSniffer
<key>IOPCIMatch</key>
<string>0x71461002 0x71421002 0x71091002...</string>
Stack::add('template_stylesheet', array(Site::get_url('theme').'/style.css', 'screen'), 'style');