Skip to content

Instantly share code, notes, and snippets.

View parthopdas's full-sized avatar
💭
...

Partha P. Das parthopdas

💭
...
View GitHub Profile
@parthopdas
parthopdas / setup.md
Created October 6, 2020 12:45
Setup an ML environment
- Anaconda on PowerShell: & 'C:\Users\partho\Anaconda3\shell\condabin\conda-hook.ps1' ; conda activate 'C:\Users\partho\Anaconda3' ; cd d:\src\c
- Create new environment
  - Setup conda
    - conda deactivate
    - conda env remove --name rl.gym.1
    - conda create --name rl.gym.1 python=3.6
    - conda activate rl.gym.1
  - Install dependencies
    - conda install pylint pywin32 jupyter pycodestyle
@parthopdas
parthopdas / CommonTypeClasses.md
Created July 27, 2020 01:32
Common type classes

Functor

  • Interface: fmap
  • Base: -
  • Adds flavored to a type
  • Laws: 2

Applicative

  • Applicative (parallel) composition
  • Base: Functor
  • Interface: pure, apply

Require consensus on UX structure

{
"$schema": "https://aka.ms/terminal-profiles-schema",
"copyFormatting": "none",
"copyOnSelect": false,
"defaultProfile": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
// Add custom keybindings to this array.
// To unbind a key combination from your defaults.json, set the command to "unbound".
// To learn more about keybindings, visit https://aka.ms/terminal-keybindings
"keybindings":
[
[<AutoOpen>]
module FSharpCore41
type Result<'TOk, 'TError> =
| Ok of 'TOk
| Error of 'TError
@parthopdas
parthopdas / YaFunTK.fs
Last active October 27, 2019 08:03
Yet another Functional ToolKit
[<AutoOpen>]
module YaFunTK
[<RequireQualifiedAccess>]
module Debug =
open System.Diagnostics
let inline dprintfn fmt = Printf.ksprintf Debug.WriteLine fmt
@parthopdas
parthopdas / Traversable.Laws.fs
Last active November 6, 2016 02:21
Traversable Laws in F#
(*
Traversable Laws in F#
Ref: https://en.wikibooks.org/wiki/Haskell/Traversable#The_Traversable_laws
Note:
- Install FSharpx.Extras, FsCheck.x, FsUnit.xUnit, FsCheck.Xunit
*)