Skip to content

Instantly share code, notes, and snippets.

View kurt-mueller-osumc's full-sized avatar

Kurt Mueller kurt-mueller-osumc

  • The Ohio State University College of Medicine Research IT
  • 18:18 (UTC -05:00)
  • X @everybody_kurts
View GitHub Profile
@kurt-mueller-osumc
kurt-mueller-osumc / ParsingCSVsWithFsharp.ipynb
Last active December 31, 2021 17:36
ParsingCSVsWithFsharp.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kurt-mueller-osumc
kurt-mueller-osumc / JsonRecord.fs
Created September 28, 2020 20:15
Creating JSON bodies, using anonymous F# records, for API requests
type Request = {
ApiToken: ApiToken
ProjectId: ProjectId
StartingAt: ObjectId option
}
module Request =
let toJson request =
let (ProjectId projectId) = request.ProjectId
let baseJson = {| scope = {| project = projectId
@kurt-mueller-osumc
kurt-mueller-osumc / DxApi.fs
Last active August 3, 2020 16:37
A simple example of F# code that calls the DNAnexus API
/// Code for accessing the DNAnexus api
/// https://documentation.dnanexus.com/developer/api/
namespace DX.Api
open FSharp.Data
open FSharp.Data.HttpRequestHeaders
open Newtonsoft.Json
/// DNAnexus Search API
/// https://documentation.dnanexus.com/developer/api/search