Skip to content

Instantly share code, notes, and snippets.

View robertodr's full-sized avatar
🤡
Clowning around

Roberto Di Remigio Eikås robertodr

🤡
Clowning around
View GitHub Profile
@robertodr
robertodr / configuration.nix
Last active January 4, 2024 15:04
kellanved
{
config,
lib,
pkgs,
...
}: {
imports = [
./hardware-configuration.nix
"${builtins.fetchTarball "https://github.com/nix-community/disko/archive/aef9a509db64a081186af2dc185654d78dc8e344.tar.gz"}/module.nix"
./disko-config.nix
@robertodr
robertodr / shell.nix
Created December 24, 2023 11:39
mrcpp nix shell
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; [
@robertodr
robertodr / .envrc
Last active December 24, 2023 11:40
mrchem nix shell
nix_direnv_watch_file nix/sources.json
use nix
@robertodr
robertodr / configuration.nix
Last active December 13, 2023 20:47
carpal-tunnel
# 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 = [
@robertodr
robertodr / configuration.nix
Created December 12, 2023 22:27
btrfs-x1carbon
# 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
# 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.
[tool.poetry]
name = "floof"
version = "0.3.0"
description = ""
authors = ["me"]
[tool.poetry.dependencies]
python = ">=3.10,<3.12"
scalene = "^1.5.20"
@robertodr
robertodr / 00_pyproject.toml
Created February 22, 2023 17:22
Poetry cotengra install issue
[tool.poetry]
name = "floof"
version = "0.1.0"
description = ""
authors = ["Roberto <roberto@me.me>"]
readme = "README.md"
[tool.poetry.dependencies]
python = "^3.10"
cotengra = { git = "https://github.com/jcmgray/cotengra", rev = "1a746c6483f6fdabfcf83abd5a436d0ac42921eb" }
@robertodr
robertodr / constexpr.cpp
Created November 10, 2022 10:23
Some constexpr stuff
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) {