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
@echo off | |
echo was: | |
dotnet --version | |
REM 1.0.1 | |
REM pushd C:\dotnetcli\dotnet-1.1.1-sdk-win-x64 | |
REM 1.0.4 | |
pushd C:\dotnetcli\dotnet-dev-win-x64.1.0.4 |
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
namespace Fable.Import | |
open Fable.Core | |
open Fable.Import.Browser | |
type [<StringEnum>] IziToastPosition = | |
BottomRight | BottomLeft | TopRight | TopLeft | TopCenter | BottomCenter | Center | |
and [<StringEnum>] IziToastTransitionIn = | |
BounceInLeft | BounceInRight | BounceInUp | BounceInDown | FadeIn | FadeInDown | FadeInUp | FadeInLeft | FadeInRight | FlipInX |
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 { FlatpickrFn } from "./src/types/instance"; | |
export { Instance } from "./src/types/instance"; | |
export * from "./src/types/options"; | |
declare var flatpickr: FlatpickrFn; | |
export default flatpickr; |
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
module rec Fable.Import.ServicestackClient | |
open System | |
open Fable.Core | |
open Fable.Import.JS | |
open Fable.Import.Browser | |
open Fable.PowerPack.Fetch | |
type [<AllowNullLiteral>] IExports = | |
abstract IEventSource: IEventSourceStaticStatic with get, set | |
abstract ServerEventsClient: ServerEventsClientStatic with get, set |
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
open WebSharper | |
open WebSharper.JavaScript | |
open WebSharper.JQuery | |
open WebSharper.UI | |
open WebSharper.UI.Client | |
[<JavaScript>] | |
module Code = | |
// This creates a typed access to the HTML template (see the Markup tab) | |
type IndexTemplate = Templating.Template<Snippet.IndexHtml> |
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
namespace Todos | |
open System; | |
open System.IO; | |
open Microsoft.AspNetCore.Builder; | |
open Microsoft.AspNetCore.Hosting; | |
open Microsoft.Extensions.Logging; | |
open Funq; | |
open ServiceStack; | |
open ServiceStack.Configuration; |
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
module viewfiles.Main | |
open System | |
open Nancy.Hosting | |
type DemoApp () = | |
inherit NancyModule() | |
do | |
let Get = base.Get | |
Get.["/"] <- fun parameters -> "Hello from Nancy" :> obj |
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
open System | |
open System.Threading | |
open Suave | |
[<EntryPoint>] | |
let main argv = | |
let cts = new CancellationTokenSource() | |
let conf = { defaultConfig with cancellationToken = cts.Token } | |
let listening, server = startWebServerAsync conf (Successful.OK "Hello World") | |
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
open Giraffe | |
let webApp = | |
choose [ | |
route "/ping" >=> text "pong" | |
route "/" >=> htmlFile "/pages/index.html" ] | |
type Startup() = | |
member __.ConfigureServices (services : IServiceCollection) = | |
// Register default Giraffe dependencies |
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
let users = | |
freyaMachine { | |
methods [ GET; OPTIONS; POST ] | |
availableMediaTypes MediaType.json | |
doPost createUser | |
handleOk listUsers } |