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
module WeatherReading | |
open System | |
type Coordinates = | |
{ | |
lon: float | |
lat: float | |
} |
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
# Define the root directory where you want to start the search | |
$rootDirectory = "D:\repos" | |
# Create a unique log file with a datetime stamp | |
$logFileName = "Meadow_pull_log_$(Get-Date -Format 'yyyyMMdd_HHmmss').txt" | |
$logFilePath = Join-Path -Path $rootDirectory -ChildPath $logFileName | |
# Get immediate child folders (one level down) | |
$childFolders = Get-ChildItem -Path $rootDirectory -Directory |
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
{ | |
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", | |
"console_title_template": "{{ if .Root }}root @ {{.HostName}} {{ end }}{{ .Shell }} in {{ .Folder }}", | |
"blocks": [ | |
{ | |
"alignment": "left", | |
"segments": [ | |
{ | |
"background": "#575656", | |
"foreground": "#D6DEEB", |
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
<UserControl xmlns="https://github.com/avaloniaui" | |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | |
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | |
xmlns:ic="using:FluentIcons.Avalonia" | |
mc:Ignorable="d" d:DesignWidth="1400" d:DesignHeight="800" | |
xmlns:lvc="clr-namespace:LiveChartsCore.SkiaSharpView.Avalonia;assembly=LiveChartsCore.SkiaSharpView.Avalonia" | |
xmlns:vm="using:AidenDesktop.ViewModels" | |
Design.DataContext="{Binding Source={x:Static vm:ChartViewModel.DesignVM}}" | |
x:DataType="vm:ZoomViewModel" |
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
<UserControl xmlns="https://github.com/avaloniaui" | |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | |
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | |
mc:Ignorable="d" d:DesignWidth="1200" d:DesignHeight="850" | |
xmlns:lvc="using:LiveChartsCore.SkiaSharpView.Avalonia" | |
xmlns:vm="using:AvaloniaExample.ViewModels" | |
xmlns:avalonia="clr-namespace:LiveChartsCore.SkiaSharpView.Avalonia;assembly=LiveChartsCore.SkiaSharpView.Avalonia" | |
Design.DataContext="{Binding Source={x:Static vm:DoughnutViewModel.DesignVM}}" | |
x:DataType="vm:DoughnutViewModel" |
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
{ | |
"final_space": true, | |
"console_title": true, | |
"console_title_style": "folder", | |
"blocks": [ | |
{ | |
"type": "prompt", | |
"alignment": "left", | |
"horizontal_offset": 0, | |
"vertical_offset": 0, |
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
#r "nuget: CoordinateSharp" | |
open System | |
open CoordinateSharp | |
let find_Closest_TimeUnit addTimeFn rangeStart rangeEnd (c : Coordinate) azimuth adjustNegatively = | |
let el = EagerLoad(EagerLoadType.Celestial) | |
el.Extensions <- EagerLoad_Extensions(EagerLoad_ExtensionsType.Solar_Cycle) |
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
module ConfigFileModule | |
type Device = { | |
Name: string | |
} | |
type Coprocessor = { | |
AutomaticallyStartNetwork: bool | |
AutomaticallyReconnect: bool | |
MaximumRetryCount: int |
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
module BluetoothModule | |
open System | |
open Plugin.BLE | |
open Plugin.BLE.Abstractions.Contracts | |
open Plugin.BLE.Abstractions.EventArgs | |
type BLEConnectionResult = | |
| Success of unit | |
| Failure of string |
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
#r "nuget: CoordinateSharp" | |
open System | |
open CoordinateSharp | |
let calculateSolarNoon latitude longitude (date: DateTime) = | |
let celestialTimes = Celestial.CalculateCelestialTimes(latitude, longitude, date, 0.0) | |
celestialTimes.SolarNoon.Value.ToLocalTime() | |
// Helper function to convert degrees to radians |
NewerOlder