- Realizar una agenda de contactos que cuente con el siguiente menú:
Bienvenido a la Agenda
- 1 - Listado de Contactos (4)
- 2 - Crear Contactos
- 3 - Eliminar Contactos
- 4 - Salir de la Agenda
blueprint: | |
name: Alexa Media Player TTS/Announce from Lovelace UI | |
description: Send a notification (TTS/Announcment) via the Lovelace-Ui with the help of a input select and input text. Uses the TTS component from Alexa Media Player which can be installed from the Home Assistant Community Store (HACS). | |
domain: automation | |
input: | |
message: | |
name: Message of the notification (Input Text) | |
description: Input text where the message comes from | |
selector: | |
entity: |
function getCards() { | |
const currentDate = new Date(); | |
const month = currentDate.getMonth() + 1; | |
const formattedMonth = month < 10 ? `0${month}` : month; | |
const thisMonth = `${currentDate.getFullYear()}-${formattedMonth}`; | |
const cards = document.querySelectorAll( | |
`[name="tempoAllocationCard"][data-date^="${thisMonth}"]` | |
); | |
return cards; |
# https://www.youtube.com/watch?v=Vg8lnG2lKSM | |
Auto Rename Tag: https://marketplace.visualstudio.com/items?itemName=formulahendry.auto-rename-tag | |
Better Comments: https://marketplace.visualstudio.com/items?itemName=aaron-bond.better-comments | |
change-case: https://marketplace.visualstudio.com/items?itemName=wmaurer.change-case | |
Code Spell Checker: https://marketplace.visualstudio.com/items?itemName=streetsidesoftware.code-spell-checker | |
Spanish - Code Spell Checker: https://marketplace.visualstudio.com/items?itemName=streetsidesoftware.code-spell-checker-spanish | |
Duplicate action: https://marketplace.visualstudio.com/items?itemName=mrmlnc.vscode-duplicate | |
Error Lens: https://marketplace.visualstudio.com/items?itemName=usernamehw.errorlens | |
file-icons: https://marketplace.visualstudio.com/items?itemName=file-icons.file-icons | |
GitHub Copilot: https://marketplace.visualstudio.com/items?itemName=GitHub.copilot |
blueprint: | |
name: Alarmo Keypad Sync with nightmode | |
description: Keypad sync with Alarmo added nightmode | |
domain: automation | |
input: | |
state_topic: | |
name: MQTT State Topic of your Zigbee2MQTT Keypad | |
description: "The State Topic is composed of your Zigbee2MQTT base_topic (see your Z2M Addon Configuration) and the Friendly Name of your keypad in Z2M. Example: zigbee2mqtt/Keypad" | |
selector: |
type: custom:auto-entities | |
card: | |
show_header_toggle: false | |
title: Running Automations | |
type: entities | |
filter: | |
include: | |
- domain: automation | |
attributes: | |
current: '! 0' |
public static bool validaCedula(string pCedula) | |
{ | |
int vnTotal = 0; | |
string vcCedula = pCedula.Replace("-", ""); | |
int pLongCed = vcCedula.Trim().Length; | |
int[] digitoMult = new int[11] { 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1 }; | |
if (pLongCed < 11 || pLongCed > 11) | |
return false; |
CREATE TABLE job_grades ( | |
grade CHAR(1), | |
lowest_sal NUMBER(8,2) NOT NULL, | |
highest_sal NUMBER(8,2) NOT NULL | |
); | |
ALTER TABLE job_grades | |
ADD CONSTRAINT jobgrades_grade_pk PRIMARY KEY (grade); | |
INSERT INTO job_grades VALUES ('A', 1000, 2999); |
{ | |
"Id": 210, | |
"CreatedAt": "2020-11-01T15:18:39.271Z", | |
"UpdatedAt": "2021-01-28T18:39:29.314Z", | |
"DeletedAt": null, | |
"IsActive": true, | |
"LocationId": 15, | |
"Location": { | |
"Id": 15, | |
"CreatedAt": "2020-06-23T10:38:36.549Z", |