Compare commits

..

No commits in common. "e7ea6b281efa32ec9d39a63bb757d64989d4990d" and "d9ee4abd065ad9e122eaa5728c2f0e424e3fc3b2" have entirely different histories.

5 changed files with 17 additions and 117 deletions

1
.gitignore vendored
View file

@ -1,3 +1,2 @@
/report.pdf /report.pdf
/result /result
/.pre-commit-config.yaml

View file

@ -1,4 +0,0 @@
default: true
# I use top-level titles for each section
MD025: false

View file

@ -2,65 +2,38 @@
"nodes": { "nodes": {
"futils": { "futils": {
"locked": { "locked": {
"lastModified": 1623875721, "lastModified": 1618868421,
"narHash": "sha256-A8BU7bjS5GirpAUv4QA+QnJ4CceLHkcXdRp4xITDB0s=", "narHash": "sha256-vyoJhLV6cJ8/tWz+l9HZLIkb9Rd9esE7p+0RL6zDR6Y=",
"owner": "numtide", "owner": "numtide",
"repo": "flake-utils", "repo": "flake-utils",
"rev": "f7e004a55b120c02ecb6219596820fcd32ca8772", "rev": "eed214942bcfb3a8cc09eb3b28ca7d7221e44a94",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "numtide", "owner": "numtide",
"ref": "master",
"repo": "flake-utils", "repo": "flake-utils",
"type": "github" "type": "github"
} }
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1626764163, "lastModified": 1619180214,
"narHash": "sha256-TB+mtRpwn6pnoUXjBvJPIgHKkwLtjzFji4tkANlZWJQ=", "narHash": "sha256-wt1uDD9RAxc3wdWOQp8zM3+ZyLb2rbnGIeaIuXGzw80=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "1441fa74d213d7cc120d9d7d49e540c1fc59bc58", "rev": "112a3b08e9bcffa58e0f79af0072fc8273933b87",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "NixOS", "owner": "NixOS",
"ref": "nixpkgs-unstable",
"repo": "nixpkgs", "repo": "nixpkgs",
"type": "github" "type": "github"
} }
}, },
"pre-commit-hooks": {
"inputs": {
"flake-utils": [
"futils"
],
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1624971177,
"narHash": "sha256-Amf/nBj1E77RmbSSmV+hg6YOpR+rddCbbVgo5C7BS0I=",
"owner": "cachix",
"repo": "pre-commit-hooks.nix",
"rev": "397f0713d007250a2c7a745e555fa16c5dc8cadb",
"type": "github"
},
"original": {
"owner": "cachix",
"ref": "master",
"repo": "pre-commit-hooks.nix",
"type": "github"
}
},
"root": { "root": {
"inputs": { "inputs": {
"futils": "futils", "futils": "futils",
"nixpkgs": "nixpkgs", "nixpkgs": "nixpkgs"
"pre-commit-hooks": "pre-commit-hooks"
} }
} }
}, },

View file

@ -2,34 +2,12 @@
description = "Ambroisie's CV"; description = "Ambroisie's CV";
inputs = { inputs = {
futils = { nixpkgs.url = "github:NixOS/nixpkgs";
type = "github"; futils.url = "github:numtide/flake-utils";
owner = "numtide";
repo = "flake-utils";
ref = "master";
}; };
nixpkgs = { outputs = { self, nixpkgs, futils } @ inputs:
type = "github"; futils.lib.eachSystem futils.lib.allSystems (system:
owner = "NixOS";
repo = "nixpkgs";
ref = "nixpkgs-unstable";
};
pre-commit-hooks = {
type = "github";
owner = "cachix";
repo = "pre-commit-hooks.nix";
ref = "master";
inputs = {
flake-utils.follows = "futils";
nixpkgs.follows = "nixpkgs";
};
};
};
outputs = { self, futils, nixpkgs, pre-commit-hooks } @ inputs:
futils.lib.eachDefaultSystem (system:
let let
inherit (nixpkgs) lib; inherit (nixpkgs) lib;
pkgs = nixpkgs.legacyPackages.${system}; pkgs = nixpkgs.legacyPackages.${system};
@ -48,36 +26,9 @@
]; ];
in in
{ {
checks = {
pre-commit = pre-commit-hooks.lib.${system}.run {
src = ./.;
hooks = {
nixpkgs-fmt = {
enable = true;
};
markdown-lint = {
enable = true;
name = "Lint each post's markdown";
entry =
let
pkg = pkgs.nodePackages.markdownlint-cli;
in
"${pkg}/bin/markdownlint";
types = [ "markdown" ];
};
};
};
};
devShell = pkgs.mkShell { devShell = pkgs.mkShell {
name = "report"; name = "report";
inherit buildInputs; inherit buildInputs;
inherit (self.checks.${system}.pre-commit) shellHook;
}; };
defaultPackage = pkgs.stdenvNoCC.mkDerivation { defaultPackage = pkgs.stdenvNoCC.mkDerivation {

View file

@ -457,25 +457,6 @@ expect few places to be as well-rounded as IMC.
# Appendix # Appendix
## Vocabulary
Market-making
: A market-maker provides liquidity to the market by continuously quoting both
sell and trade prices on the market, hoping to make a profit on the *bid-ask
spread*.
Bid and ask
: Respectively the price for buying and selling a stock or other financial
instrument. The closer the spread of the two prices is, the more liquidity there
is in the market for that product.
Continuous Integration
: The practice of automating the integration of code from multiple contributors
into a single software project.
## About IMC ## About IMC
International Marketmakers Combinations (IMC) was founded in 1989 in Amsterdam, International Marketmakers Combinations (IMC) was founded in 1989 in Amsterdam,