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 Thoth.Json | |
open Fable.Core | |
open Fable.Core.JS | |
open Fable.Core.JsInterop | |
// Code copied from https://github.com/MangelMaxime/Fable.Geojson/blob/master/src/Geojson.fs | |
// REPL include Geojson library so I copy/paste the code in order to have equivalent | |
module GeoJson = |
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
.card.is-avatar { | |
max-width: 350px; | |
margin: auto; | |
} | |
.card.is-avatar .card-image { | |
display: flex; | |
justify-content: center; | |
align-items: center; | |
padding: 25px 0 0; | |
} |
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
html, | |
body { | |
font-size: 16px; | |
} |
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
html, | |
body { | |
font-size: 16px; | |
} |
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
html, | |
body { | |
font-size: 16px; | |
} |
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
html, | |
body { | |
font-size: 16px; | |
} | |
.main-container { | |
display: flex; | |
width: 100%; | |
height: 100%; | |
justify-content: center; |
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
html, | |
body { | |
font-size: 16px; | |
} | |
.main-container { | |
display: flex; | |
width: 100%; | |
height: 100%; | |
justify-content: center; |
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 Tests.Main | |
open Expecto | |
open Util.Testing | |
open Thoth.Json.Net | |
let json = | |
""" | |
{ | |
"name": "Test HTTP Scenario", |
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
[<RequireQualifiedAccess>] | |
module Http | |
open Fable.Import | |
open Fable.PowerPack | |
open Fable.PowerPack.Fetch | |
open Thoth.Json | |
open Fable.Core.JsInterop | |
type User = |
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
package async; | |
#if macro | |
import haxe.macro.Context; | |
#end | |
class Async { | |
public static macro function async(expr:haxe.macro.Expr) { | |
expr = Context.storeTypedExpr(Context.typeExpr(expr)); | |
return macro untyped __js__("(async {0})", ${expr})(); |
NewerOlder