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 Plecto | |
| let PHI = 1.6180339887498948482045868343656381177203091798057628621354486227052604628189024497072072041893911374847 // https://oeis.org/A001622 | |
| let PI = System.Math.PI | |
| let TAU = 2.*PI | |
| let E = System.Math.E | |
| let inline fma m a x = x*m + a | |
| let inline mix x0 x1 x = fma (x1-x0) x0 x | |
| let inline map x0 x1 y0 y1 = |
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
| curl 'https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/development/compilers/dotnet/sdk/default.nix' > dotnet-sdk.nix | |
| cat > default.nix << EOF | |
| with import <nixpkgs> {}; | |
| rec { | |
| dotnet-sdk = pkgs.callPackage ./dotnet-sdk.nix { }; | |
| } | |
| EOF |
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
| """ | |
| Sample output: | |
| ``` | |
| range: 19.7 → 30.9 | |
| mean: 25.06 | |
| 19.6 (0.0%) | |
| 20.0 (0.1%) | |
| 20.4 █ (0.1%) |
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
| from __future__ import annotations | |
| import datetime | |
| import enum | |
| from dataclasses import dataclass, field | |
| from typing import Iterator, Optional | |
| class CT(enum.Enum): | |
| DATA = 0 |
OlderNewer