This file contains hidden or 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
| // | |
| // ContentView.swift | |
| // CurrencyField | |
| // | |
| // Created by Yaser Almasri on 24/09/22. | |
| // | |
| import SwiftUI | |
| struct ContentView: View { |
This file contains hidden or 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
| require 'amazing_print' | |
| def interest(amount:, rate:, months:, years:) | |
| a = amount | |
| 1.upto(years) do | |
| 1.upto(months) do |month| | |
| a += a * rate/months | |
| a += amount | |
| end | |
| end |
This file contains hidden or 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 SwiftUI | |
| extension Calendar { | |
| func generateDates( | |
| inside interval: DateInterval, | |
| matching components: DateComponents | |
| ) -> [Date] { | |
| var dates: [Date] = [] | |
| dates.append(interval.start) |
This file contains hidden or 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: WLED Segmented Notifications | |
| description: >- | |
| Control up to 4 segments on a single WLED strip for independent notifications. | |
| domain: automation | |
| input: | |
| wled_device: | |
| name: WLED Light Entity | |
| selector: |
This file contains hidden or 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: Light Notifications | |
| description: Turn a light on based on boolean helpers. | |
| domain: automation | |
| input: | |
| target_light: | |
| name: Target Light Entity | |
| selector: | |
| entity: | |
| domain: light |
This file contains hidden or 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
| #!/bin/sh | |
| # A logging script to be executed by the Objective-See OverSight tool: | |
| # | |
| # https://objective-see.org/products/oversight.html | |
| # | |
| # Logs microphone and camera events, including the process path and user | |
| # if available. | |
| # | |
| # By Keith McCammon // kwm.me |
OlderNewer