Skip to content

Instantly share code, notes, and snippets.

@npry
npry / .env
Created February 14, 2018 01:05
dotenv! macro hangs
MY_KEY=MY_VALUE
@npry
npry / .rustfmt.toml
Last active March 31, 2022 11:24
standard rustfmt.toml
blank_lines_upper_bound = 1
brace_style = "SameLineWhere"
condense_wildcard_suffixes = true
control_brace_style = "AlwaysSameLine"
edition = "2018"
empty_item_single_line = true
enum_discrim_align_threshold = 25
fn_args_layout = "Tall"
force_explicit_abi = true
force_multiline_blocks = false
@npry
npry / flake.nix
Last active January 3, 2021 15:03
base flake
{
inputs = {
nixpkgs.url = github:nixos/nixpkgs/master;
flake-utils.url = github:numtide/flake-utils;
};
description = "";
outputs = { self, nixpkgs, flake-utils }: (flake-utils.lib.eachDefaultSystem (system:
let
@npry
npry / .editorconfig
Last active February 10, 2021 18:34
typical editorconfig
[*]
end_of_line = lf
insert_final_newline = true
charset = utf-8
indent_style = space
indent_size = 4
trim_trailing_whitespace = true
[*.nix]
indent_size = 2