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
{ | |
config, | |
lib, | |
pkgs, | |
... | |
}: { | |
imports = [ | |
./hardware-configuration.nix | |
"${builtins.fetchTarball "https://github.com/nix-community/disko/archive/aef9a509db64a081186af2dc185654d78dc8e344.tar.gz"}/module.nix" | |
./disko-config.nix |
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
let | |
sources = import ./nix/sources.nix; | |
pkgs = import sources.nixpkgs { | |
overlays = [ | |
]; | |
}; | |
in | |
pkgs.mkShell.override { stdenv = pkgs.llvmPackages_13.stdenv; } { | |
name = "MRCPP"; | |
nativeBuildInputs = with pkgs; [ |
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
nix_direnv_watch_file nix/sources.json | |
use nix |
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
# Edit this configuration file to define what should be installed on | |
# your system. Help is available in the configuration.nix(5) man page, on | |
# https://search.nixos.org/options and in the NixOS manual (`nixos-help`). | |
{ | |
config, | |
lib, | |
pkgs, | |
... | |
}: { | |
imports = [ |
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
# Edit this configuration file to define what should be installed on | |
# your system. Help is available in the configuration.nix(5) man page, on | |
# https://search.nixos.org/options and in the NixOS manual (`nixos-help`). | |
{ config, lib, pkgs, ... }: | |
{ | |
imports = | |
[ # Include the results of the hardware scan. | |
./hardware-configuration.nix |
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
# Edit this configuration file to define what should be installed on | |
# your system. Help is available in the configuration.nix(5) man page | |
# and in the NixOS manual (accessible by running ‘nixos-help’). | |
{ | |
config, | |
pkgs, | |
... | |
}: { | |
imports = [ | |
# Include the results of the hardware scan. |
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
[tool.poetry] | |
name = "floof" | |
version = "0.3.0" | |
description = "" | |
authors = ["me"] | |
[tool.poetry.dependencies] | |
python = ">=3.10,<3.12" | |
scalene = "^1.5.20" |
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
[tool.poetry] | |
name = "floof" | |
version = "0.1.0" | |
description = "" | |
authors = ["Roberto <[email protected]>"] | |
readme = "README.md" | |
[tool.poetry.dependencies] | |
python = "^3.10" | |
cotengra = { git = "https://github.com/jcmgray/cotengra", rev = "1a746c6483f6fdabfcf83abd5a436d0ac42921eb" } |
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
namespace detail { | |
constexpr auto factorial(size_t n) -> size_t { | |
return n <= 1 ? 1 : (n * factorial(n - 1)); | |
} | |
constexpr auto binomial(size_t n, size_t k) -> size_t { | |
if (n == k || k == 0) { | |
return 1; | |
} else { | |
if (n == 0) { |
NewerOlder