Compare commits

...

6 commits

5 changed files with 117 additions and 17 deletions

1
.gitignore vendored
View file

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

4
.markdownlint.yaml Normal file
View file

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

View file

@ -2,38 +2,65 @@
"nodes": { "nodes": {
"futils": { "futils": {
"locked": { "locked": {
"lastModified": 1618868421, "lastModified": 1623875721,
"narHash": "sha256-vyoJhLV6cJ8/tWz+l9HZLIkb9Rd9esE7p+0RL6zDR6Y=", "narHash": "sha256-A8BU7bjS5GirpAUv4QA+QnJ4CceLHkcXdRp4xITDB0s=",
"owner": "numtide", "owner": "numtide",
"repo": "flake-utils", "repo": "flake-utils",
"rev": "eed214942bcfb3a8cc09eb3b28ca7d7221e44a94", "rev": "f7e004a55b120c02ecb6219596820fcd32ca8772",
"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": 1619180214, "lastModified": 1626764163,
"narHash": "sha256-wt1uDD9RAxc3wdWOQp8zM3+ZyLb2rbnGIeaIuXGzw80=", "narHash": "sha256-TB+mtRpwn6pnoUXjBvJPIgHKkwLtjzFji4tkANlZWJQ=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "112a3b08e9bcffa58e0f79af0072fc8273933b87", "rev": "1441fa74d213d7cc120d9d7d49e540c1fc59bc58",
"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,12 +2,34 @@
description = "Ambroisie's CV"; description = "Ambroisie's CV";
inputs = { inputs = {
nixpkgs.url = "github:NixOS/nixpkgs"; futils = {
futils.url = "github:numtide/flake-utils"; type = "github";
owner = "numtide";
repo = "flake-utils";
ref = "master";
};
nixpkgs = {
type = "github";
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, nixpkgs, futils } @ inputs: outputs = { self, futils, nixpkgs, pre-commit-hooks } @ inputs:
futils.lib.eachSystem futils.lib.allSystems (system: futils.lib.eachDefaultSystem (system:
let let
inherit (nixpkgs) lib; inherit (nixpkgs) lib;
pkgs = nixpkgs.legacyPackages.${system}; pkgs = nixpkgs.legacyPackages.${system};
@ -16,19 +38,46 @@
pandoc pandoc
(texlive.combine { (texlive.combine {
inherit (texlive) inherit (texlive)
scheme-small scheme-small
# Extra packages needed # Extra packages needed
changepage changepage
enumitem enumitem
placeins placeins
; ;
}) })
]; ];
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,6 +457,25 @@ 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,