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
<Project> | |
<!-- Create a target that will assign the license information for a project to an attribute --> | |
<Target Name="AssignLicenseAttribute"> | |
<!-- Only do this if the user is allowing assemblyinfo generation --> | |
<ItemGroup Condition="'$(GenerateAssemblyInfo)' == 'true'"> | |
<!-- Only generate if the license is present and the user has requested this attribute --> | |
<AssemblyAttribute | |
Include="System.Reflection.AssemblyMetadataAttribute" | |
Condition="'$(GenerateLicenseExpressionAttribute)' == 'true' and '$(PackageLicenseExpression)' != ''"> | |
<_Parameter1>LicenseExpression</_Parameter1> |
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 "FSharp.Compiler.Service" | |
open FSharp.Compiler.EditorServices | |
open FSharp.Compiler.CodeAnalysis | |
open FSharp.Compiler.Text | |
open System.IO | |
let fcsVersion = | |
System | |
.Reflection | |
.Assembly |
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
type Suit = | |
| Spades | |
| Clubs | |
| Diamonds | |
| Hearts | |
type Face = | |
| Two | |
| Three | |
| Four |
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
open System | |
[<return:Struct>] | |
let inline (|Between|_|) left right value = | |
if value > left && value < right then ValueSome () else ValueNone | |
let today = DateTime.Now | |
let yesterday = DateTime.Now.AddDays(-1.0) | |
let tomorrow = DateTime.Now.AddDays(1.0) | |
let twoDaysAgo = DateTime.Now.AddDays(-2.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 "System.Threading.Channels" | |
open System.Threading.Channels | |
open System.Threading | |
open System | |
open System.Threading.Tasks | |
open System.Threading | |
type Mailbox<'state, 'msg>(initialState, f, ctok) as this = | |
let c: Channel<'msg> = Channel.CreateUnbounded(UnboundedChannelOptions(SingleReader = true, SingleWriter = true)) |
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
<Project> | |
<!-- Targets that replicate the behavior of the azure functions isolated dockerfile using the | |
SDK container tech --> | |
<Target Name="EnsureValidFunctionsTFM"> | |
<PropertyGroup> | |
<_MinimumSupportedFunctionsTFM>6.0</_MinimumSupportedFunctionsTFM> | |
<_MaximumSupportedFunctionsTFM>8.0</_MaximumSupportedFunctionsTFM> | |
</PropertyGroup> |
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
<Project> | |
<PropertyGroup> | |
<!-- We have to build Publish AND PublishContainer because PublishContainer (and other | |
PublishProfile-delivered targets) don't have an explicit Publish dependency. --> | |
<_RequiredContainerPublishTargets>Publish;PublishContainer</_RequiredContainerPublishTargets> | |
</PropertyGroup> | |
<!-- Entrypoint, either from solution-level `/t:Containerize` or project-level `/t:Containerize` --> | |
<Target Name="Containerize" Condition="'$(EnableSdkContainerSupport)' == 'true'"> | |
<!-- Strategy here is that we will figure out what proejct(s) to build the containerization targets(s) for |
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
<?xml version="1.0" encoding="utf-16"?> | |
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" InitialTargets="ValidateSolutionConfiguration;ValidateToolsVersions;ValidateProjects" DefaultTargets="Build"> | |
<PropertyGroup> | |
<MSBuildFileVersion>17.6.0.18004</MSBuildFileVersion> | |
<MSBuildSemanticVersion>17.6.0+61dd65684</MSBuildSemanticVersion> | |
<RoslynTargetsPath>C:\Program Files\dotnet\sdk\7.0.303\Roslyn</RoslynTargetsPath> | |
<VisualStudioVersion>17.0</VisualStudioVersion> | |
<_DirectorySolutionPropsFile>Directory.Solution.props</_DirectorySolutionPropsFile> | |
<_DirectorySolutionPropsBasePath /> | |
<Configuration>Debug</Configuration> |
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
2T soy sauce | |
2T Hoison sauce | |
2T Dry sherry | |
1T light brown sugar | |
1T peanut oil | |
1 1/2 tsp honey | |
1/2 tsp garlic salt | |
1/2 tsp ground cinnamon | |
1 lb pork tenderloin |
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
@registry = registry-1.docker.io | |
@authEndpoint = auth.docker.io | |
@authService = registry.docker.io | |
@repo = library/ubuntu | |
@tag = jammy | |
# @name authenticate | |
GET https://{{authEndpoint}}/token?service={{authService}}&scope=repository:{{repo}}:pull | |
### |