Skip to content

Instantly share code, notes, and snippets.

@chrisfls
chrisfls / vscode.nix
Last active January 17, 2023 04:07
nix-configs
let
# home-manager.nix
programs.vscode = {
enable = true;
package = pkgs.vscode;
extensions = pkgs.vscode-utils.extensionsFromVscodeMarketplace
(import (fileFromMisc "vscode/extensions.nix"));
};
# configuration.nix
@chrisfls
chrisfls / resolve.fsx
Created February 19, 2023 01:42
Dependency resolver for F# using comments
module Path =
open System.IO
let isAbsolute (a: string) = Path.IsPathRooted(a)
let dirname (a: string) = Path.GetDirectoryName(a)
let name (a: string) = Path.GetFileName(a)
@chrisfls
chrisfls / Tailwind.elm
Last active May 23, 2023 04:14
tailwind binding generator for elm written in deno
This file has been truncated, but you can view the full file.
module Tailwind exposing (..)
{-| Generated from Tailwind 2.2.19.
-}
import Html exposing (Attribute)
import Html.Attributes exposing (class)
@chrisfls
chrisfls / README.md
Last active June 9, 2023 22:26
targets

Personal headphone targets

Based on the Diffuse Field target with a slope of -0.833 dB per octave to make it more Harman-like.

Sounds extremely similar to the Moondrop Variations, but this is only a coincidence.

Variants

  • _harman has less treble
const translations: ({
term: string;
definition: string;
context: string;
term_plural: string;
reference: string;
comment: string;
} | {
term: string;
definition: {
# TODO: move this over to config file
monitor=eDP-1,disable
monitor=HDMI-A-1,preferred,auto,auto
# TODO: move this over to config file (scaling settings)
env = GDK_SCALE,1.5
env = XCURSOR_SIZE,16
env = NIXOS_OZONE_WL,1
$statusbar = waybar