See this repo, which makes this much simpler:
https://gist.github.com/giggio/8b326bf9bf3f2801f1d57e02d5ec3bea
blueprint: | |
name: Connect lights | |
description: Turn lights on or off based on another light's state changes | |
domain: automation | |
input: | |
target_lights: | |
name: Lights | |
description: The lights to sync | |
selector: | |
entity: |
See this repo, which makes this much simpler:
https://gist.github.com/giggio/8b326bf9bf3f2801f1d57e02d5ec3bea
{ | |
"id": "09f5f8d4-a20b-4cb0-9a1e-25e68640a49e", | |
"name": "My Visual Studio extensions", | |
"description": "A collection of my Visual Studio extensions", | |
"version": "1.0", | |
"extensions": [ | |
{ | |
"name": ".NET Upgrade Assistant", | |
"vsixId": "Microsoft.NET.UpgradeAssistant", | |
"moreInfoUrl": "https://marketplace.visualstudio.com/items?itemName=ms-dotnettools.upgradeassistant", |
use regex::Regex; | |
// 1 | |
// fn validar_cpf(cpf: &str) -> bool { | |
// let re = Regex::new(r"^(?!000\.000\.000\-00|111\.111\.111\-11|222\.222\.222\-22|333\.333\.333\-33|444\.444\.444\-44|555\.555\.555\-55|666\.666\.666\-66|777\.777\.777\-77|888\.888\.888\-88|999\.999\.999\-99)\d{3}\.\d{3}\.\d{3}\-\d{2}$").unwrap(); | |
// let mut cpf_sem_pontos = cpf.replace(".", "").replace("-", ""); | |
// if !re.is_match(cpf) { | |
// return false; | |
// } | |
// let mut digito1: u32 = 0; |
You need to access from the smartphone for the links to work.