This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
blueprint: | |
name: Zigbee2MQTT - Tuya Moes Smart Knob (Operation Mode = event) | |
description: Automate your Tuya Smart Knob - ERS-10TZBVK-AA | |
domain: automation | |
input: | |
mode: | |
name: Automation Modes | |
description: "https://www.home-assistant.io/docs/automation/modes/" | |
default: parallel | |
selector: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Disclaimer: not actual code | |
// actions/login.js | |
import authService from "services/authService" | |
import {getLoginInfo} from "selectors/login" | |
export function login() { | |
return function thunk(dispatch, getState) { | |
const data = getLoginInfo(getState()); | |
if (!data.username) { | |
notifications.show({message: "Please enter an email"}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Disclaimer: not actual code | |
import history from "services/history" | |
import store from "services/store" | |
import api from "services/api" | |
class AuthService { | |
constructor() { | |
this.tokenRefresher = throttle(this.refreshToken, 4 * 60 * 1000); | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Download Elementary OS from here: | |
#http://sourceforge.net/projects/elementaryos/files/stable/ | |
#First you update your system | |
sudo apt-get update && sudo apt-get dist-upgrade | |
#Install Google Chrome | |
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - | |
sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//manager.js | |
var _ = require("lodash"); | |
function StatusManager(){ | |
this.componentsStatus = {}; | |
} | |
_.extend(StatusManager.prototype, { | |
getStatus: function(identifier) { | |
return this.componentsStatus[identifier]; | |
}, | |
setStatus: function(identifier, newStatus) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Checkbox = React.createClass({ | |
render: function(){ | |
return ( | |
<div>I will be a check box</div> | |
); | |
} | |
}) |