Ask these questions:
- How many of you have deployed your applications for the cloud?
- Have you ever had any downtown out of something you didn't do?
| <# | |
| .SYNOPSIS | |
| Cross-platform development environment setup module for PowerShell Core. | |
| .DESCRIPTION | |
| This module provides functions to install and configure a complete development | |
| environment on Windows, macOS, and Linux. It requires PowerShell Core (7+). | |
| .NOTES | |
| This module is designed to be imported by setup-core.ps1 and should only run |
| public static partial class LinqExtensions | |
| { | |
| public static Maybe<C> SelectMany<A, B, C>(this Maybe<A> ma, Func<A, Maybe<B>> f, Func<A, B, C> select) => ma.Bind(a => f(a).Map(b => select(a, b))); | |
| } |
| # generated by Git for Windows | |
| test -f ~/.profile && . ~/.profile | |
| test -f ~/.bashrc && . ~/.bashrc | |
| #from http://stackoverflow.com/questions/33220492/ps1-bash-command-substitution-not-working-on-windows-10 | |
| # Reset | |
| Off="\[\e[0m\]" # Text Reset | |
| # Regular Colors |
| // F<'a> is any type with member 'map' of type ('a -> 'b) -> F<'a> -> F<'b> | |
| type F<'a> = QIL<'a> | |
| and S<'a> = F<Q<'a>> | |
| and Q<'a> = | |
| private | |
| | Step of Step<'a> | |
| | Bind of IBind<'a> | |
| with | |
| static member lift (k : F<'a>) : Q<'a> = Step (Suspend (fun () -> S<_>.map (Yield >> Step) k)) |
| # Git branch in prompt. | |
| parse_git_branch() { | |
| git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' | |
| } | |
| export PS1="\u@\h \W\[\033[32m\]\$(parse_git_branch)\[\033[00m\] $ " |
| namespace Utility | |
| { | |
| using System; | |
| using System.Runtime.CompilerServices; | |
| using System.Threading.Tasks; | |
| internal sealed class LazyAsync<T> | |
| { | |
| public T Value => valueL.Value; |
| using Microsoft.Extensions.Logging; | |
| using Orleans; | |
| using Orleans.Configuration; | |
| using Orleans.Hosting; | |
| using System; | |
| using System.Threading.Tasks; | |
| namespace Orleans2GettingStarted | |
| { | |
| internal static class ClientDevelopmentHelpers |
dotnet tool install.dotnet tool install fake-cli -g.dotnet new -i "fake-template::*"| module Tree = | |
| type NodeId = | Id of string | |
| with | |
| member this.unapply = match this with | Id x -> x | |
| [<AutoOpen>] | |
| module internal Node = | |
| [<AbstractClass>] | |
| type NodeBase<'a> () = class | |
| member val internal Children : NodeBase<'a> list = [] with get, set |