Skip to content

Instantly share code, notes, and snippets.

View guilhermelirio's full-sized avatar

Guilherme Lirio Tomasi de Oliveira guilhermelirio

View GitHub Profile
@guilhermelirio
guilhermelirio / array_dates.js
Created December 4, 2021 01:57
Create array of dates
const allDays = [0, 3, 5];
function formatToPush(dt_inicio, dt_final, dia, horas) {
let start = moment(dt_inicio);
let end = moment(dt_final);
let result = [];
let datas = [];
let current = start.clone();
@guilhermelirio
guilhermelirio / lambda_function.py
Created April 8, 2022 12:21 — forked from matt2005/lambda_function.py
Alexa Smart Home Skill Adapter for Home Assistant
"""
Copyright 2019 Jason Hu <awaregit at gmail.com>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
{
"type": "APL",
"version": "1.0",
"resources": [
{
"numbers": {
"GENERATED_FONT_SIZE": 72
}
}
],