Skip to content

Instantly share code, notes, and snippets.

@zeejers
zeejers / ApiClient.fs
Last active July 16, 2023 02:01
F# Api Client Wrapper Using FSharp.Data.Http
open FSharp.Data
open System
open System.Text
type HttpRequestConfig =
{ url: string option
query: (string * string) list option
headers: (string * string) seq option
method: string option
body: HttpRequestBody option
@zeejers
zeejers / wxwidget_install.sh
Last active November 27, 2022 19:43
Ubuntu wxWidgets Install Command for asdf
#!/bin/bash
# asdf users will run into this problem when trying to use :observer.start(), because asdf erlang install doesn't include wxWdigets
## [error] ERROR: Could not find 'wxe_driver.so' in: /home/zsherbondy/.asdf/installs/erlang/25.1/lib/wx-2.2/priv
## {:error,
## {{:load_driver, 'No driver found'},
## [
## {:wxe_server, :start, 1, [file: 'wxe_server.erl', line: 65]},
## {:wx, :new, 1, [file: 'wx.erl', line: 115]},