[{"id":"3e727e47.c13612","type":"subflow","name":"1 USD to BRL","info":"","category":"","in":[{"x":280,"y":320,"wires":[{"id":"6ca501bf.1854a"}]}],"out":[{"x":820,"y":320,"wires":[{"id":"f5176590.468c78","port":0}]}],"env":[],"color":"#3FADB5","outputLabels":["Dolar value"],"icon":"font-awesome/fa-money"},{"id":"f5176590.468c78","type":"function","z":"3e727e47.c13612","name":"parse dolar value","func":"function getMatches(string, regex, index) {\n index || (index = 1); // default to the first capturing group\n var matches = [];\n var match;\n while (match = regex.exec(string)) {\n matches.push(match[index]);\n }\n return matches;\n}\n\n\nvar regex = /(\\d\\,\\d\\d) Real brasileiro/g\nvar
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
interface LoginContracts { | |
interface View { | |
fun showError(message: String) | |
} | |
interface Presenter { | |
fun onDestroy() | |
fun onLoginButtonPressed(username: String, password: String) | |
} | |
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: Sync two lights | |
description: Turn on a light when other one is turend on and vice versa | |
domain: automation | |
input: | |
light_entity1: | |
name: Light 1 | |
selector: | |
entity: | |
domain: light |
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: Aqara Wireless Switch (single, double, hold) | |
description: 'Control anything using Aqara Wireless Switch. | |
Customizable actions for each press. | |
This version of the blueprint is for buttons supporting single, double and hold actions. | |
' | |
domain: automation |
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
--heres a even better one for a fake virus prank | |
tell application "Finder" | |
-- set x to ((path to me as text) & "Contents:Resources:appicon.icn*s") as | |
display dialog "Please read and agree to our Terms of Service (ToS). " buttons "OK" default button "OK" with title "iLivid Terms of Service" with icon 1 | |
set volume 10 | |
do shell script "say -v trinoids Virus activated" | |
display dialog "Virus propagating. |
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
<!-- Put this in /etc/avahi/services/mosquitto.service --> | |
<!DOCTYPE service-group SYSTEM "avahi-service.dtd"> | |
<service-group> | |
<name replace-wildcards="yes">Mosquitto MQTT server on %h</name> | |
<service> | |
<type>_mqtt._tcp</type> | |
<port>1883</port> | |
<txt-record>info=Publish, Publish! Read all about it! mqtt.org</txt-record> | |
</service> |
Essa é a versão em português
For the English (en-US) version check THIS LINK
A algum tempo, alguns modelos de smart plug com o padrão de tomada brasileiro começaram a aprecer no AliExpress.
OlderNewer