Skip to content

Instantly share code, notes, and snippets.

[16/02/2021, 22:05:11] The plugin 'homebridge-nexia-thermostat-ts' slows down requests made to homebridge! The read handler for the characteristic 'Target Heating Cooling State' was slow to respond!
[16/02/2021, 22:05:11] Above characteristic warning was triggered at: undefined
[16/02/2021, 22:05:11] The plugin 'homebridge-nexia-thermostat-ts' slows down requests made to homebridge! The read handler for the characteristic 'Current Temperature' was slow to respond!
[16/02/2021, 22:05:11] Above characteristic warning was triggered at: undefined
[16/02/2021, 22:05:11] The plugin 'homebridge-nexia-thermostat-ts' slows down requests made to homebridge! The read handler for the characteristic 'Target Temperature' was slow to respond!
[16/02/2021, 22:05:11] Above characteristic warning was triggered at: undefined
[16/02/2021, 22:05:11] The plugin 'homebridge-nexia-thermostat-ts' slows down requests made to homebridge! The read handler for the characteristic 'Temperature Display Units' was slow to respond!
[16/02/202
r events
2021-02-17T05:35:31.342Z HAP-NodeJS:Accessory [Homebridge DE6F] Registering Characteristic "Temperature Display Units" for events
2021-02-17T05:35:31.343Z HAP-NodeJS:EventedHTTPServer [::ffff:192.168.1.58] HTTP Response is finished
2021-02-17T05:35:31.355Z HAP-NodeJS:EventedHTTPServer [::ffff:192.168.1.58] HTTP request: /characteristics
2021-02-17T05:35:31.355Z HAP-NodeJS:HAPServer [0E:7C:22:75:DE:6F] HAP Request: PUT /characteristics
2021-02-17T05:35:31.355Z HAP-NodeJS:Accessory [Homebridge DE6F] Processing characteristic set: [{"aid":4,"iid":10,"ev":true},{"aid":4,"iid":11,"ev":true},{"aid":4,"iid":14,"ev":true},{"aid":4,"iid":15,"ev":true},{"aid":4,"iid":16,"ev":true}]
2021-02-17T05:35:31.356Z HAP-NodeJS:Accessory [Homebridge DE6F] Registering Characteristic "Lock Current State" for events
2021-02-17T05:35:31.356Z HAP-NodeJS:Accessory [Homebridge DE6F] Registering Characteristic "Lock Target State" for events
2021-02-17T05:35:31.356Z HAP-NodeJS:Accessory [Homebridge DE6F] Registering Characteristi

Effective Engineer - Notes

What's an Effective Engineer?

  • They are the people who get things done. Effective Engineers produce results.

Adopt the Right Mindsets

exports.decorateTerm = (Term, { React, notify }) => {
// Define and return our higher order component.
return class extends React.Component {
constructor (props, context) {
super(props, context);
this._div = null;
this._onTerminal = this._onTerminal.bind(this);
}
render () {
// Return the default Term component with our custom onTerminal closure
;;;;
;; Clojure
;;;;
;; Enable paredit for Clojure
(add-hook 'clojure-mode-hook 'enable-paredit-mode)
;; This is useful for working with camel-case tokens, like names of
;; Java classes (e.g. JavaClassName)
(add-hook 'clojure-mode-hook 'subword-mode)
@rahulpilani
rahulpilani / prefix_tree.clj
Created December 30, 2011 23:13
Prefix tree creation and traversal in Clojure
(ns prefix-tree)
;Record representing a node in the prefix tree.
;strings: The set of strings that the present node represents
;edges: Map representing edges emanating from this node.
;The key being the first letter of the label and the value being the label and the actual node being pointed to."
(defrecord Node [strings edges])
(defn shorter-string [a b]
"Return the shorter string of the two being passed in."