-
Reset to factory defaults
reset config bootstrap reset config
-
Configure interfaces
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: Send a camera snapshot when motion event type is detected | |
description: 'This automation blueprint creates a camera snapshot if general motion or a specific motion event object is detected and sends a notification to your phone with the picture.' | |
domain: automation | |
input: | |
motion_sensor: | |
name: Motion sensor | |
description: The sensor which triggers the snapshot creation | |
selector: | |
entity: |
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
name: Add New Employee Line | |
description: Add a new line for employee | |
host: EXCEL | |
api_set: {} | |
script: | |
content: >- | |
$("#run").click(() => tryCatch(run)); | |
async function run() { |
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
// | |
// main.swift | |
// weatherAPIcall | |
// | |
// Created by Adir Burke on 25/8/20. | |
// Copyright © 2020 WorkDesk. All rights reserved. | |
// | |
import Foundation |
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
// | |
// Postgres+Transaction.swift | |
// | |
// Created by Mihael Isaev on 14.01.2020. | |
// | |
import Vapor | |
import FluentKit | |
import PostgresKit |
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
// Enum Protocol | |
public protocol PostgresEnum: RawRepresentable, Codable, CaseIterable, PostgresDataConvertible { | |
static var name: String { get } | |
} | |
extension PostgresEnum { | |
static var name: String { String(describing: self).lowercased() } | |
} |
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
// configure.swift | |
func configure(_ app: Application) throws { | |
app.migrations.add(Todo(), to: .psql) | |
try app.migrator.setupIfNeeded().wait() | |
try app.migrator.prepareBatch().wait() | |
} | |
// Todo.swift | |
final class Todo: Model, Content { |
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
import Vapor | |
import SwiftProtobuf | |
import Foundation | |
extension ByteBuffer { | |
public func allData() -> Data { | |
return getData(at: 0, length: readableBytes) ?? Data() | |
} | |
} |