flex-direction→main-axis(row[horizontal] → orcolumn[vertical] ↓)justify-content→main-axis-alignalign-items→cross-axis-alignalign-content→cross-axis-align-wrapped
align-self→cross-axis-align-override
| #!/usr/bin/env -S bash -c 'nix-shell --pure $0 -A env' | |
| # Usage: | |
| # 1. run directly to enter bash (inside venv): `./venv-py37.nix` | |
| # 2. build a standalone executable: `nix bundle -f ./venv-py37.nix` #this not works yet since it cause nested `unshare -U` call | |
| # 3. run bash with extra arguments: `nix run -f ./venv-py37.nix '' -- -c 'python --version'` | |
| # More: | |
| # 1. commit id of nixpkgs can be found here: https://lazamar.co.uk/nix-versions/?channel=nixpkgs-unstable&package=python3 | |
| let |
| ### | |
| ### [2023-06-19] UPDATE: Just tried to use my instructions again on a fresh install and it failed in a number of places. | |
| ###. Not sure if I'll update this gist (though I realise it seems to still have some traffic), but here's a list of | |
| ###. things to watch out for: | |
| ### - Check out the `nix-darwin` instructions, as they have changed. | |
| ### - There's a home manager gotcha https://github.com/nix-community/home-manager/issues/4026 | |
| ### | |
| # I found some good resources but they seem to do a bit too much (maybe from a time when there were more bugs). | |
| # So here's a minimal Gist which worked for me as an install on a new M1 Pro. |
| // This gist contains JavaScript functions and tests for: | |
| // - conversion from gamma-corrected (or gamma-compressed) sRGB to linear RGB, to Oklab | |
| // - interpolation through Oklab | |
| // - conversion back to linear RGB, then sRGB | |
| // To use these tests, install nodejs, save this file locally, and run with: | |
| // node OklabExperiments.js | |
| // No other dependencies are required to use this. | |
| // Thanks to some helpful folks in the generative art community for helping me better understand what's happening with this. | |
| // My toddler smacked the keyboard with a piece of cardboard and made me accidentally type: |
This document is targeted at those who seek to build reproducible dev environment across machines, OS, and time.
It maybe easier for remote teams to work together and not spending hours each person setting up asdf/pyenv/rbenv, LSP servers, linters, runtime/libs. Nix is probably the closest thing to Docker in terms of development environment.
Flake is used here because it provides hermetic build, with absolutely no reliance on system environment (be it Arch/Catalina/Mojave). Also it freezes dependencies in flake.lock so builds are reproducible.
This gist provides the setup to develop Java/Clojure/Python applications on Nix. But it can be easily adapted to ruby, nodejs, haskell.
I wanted to share something I've learned in the course of therapy that I felt might benefit others. Specifically, I'd like to share how to better listen to one's emotions.
You might wonder why would we want to be in better touch with our emotions. One reason why is that everybody builds a metaphor or narrative for themselves
| hs.loadSpoon('SpoonInstall') | |
| spoon.SpoonInstall.use_syncinstall = true | |
| Install = spoon.SpoonInstall | |
| log = hs.logger.new('init', 5) | |
| -- function debugUI(msg, table) | |
| -- log:d(msg) | |
| -- log:d(hs.inspect(table)) | |
| -- end |
| https://github.com/David-Else/fedora-ultimate-setup-script/blob/master/install-and-setup-neovim.sh |
NOTE: Time flies, and it's been almost five years(!) since I wrote this. Beaware the text below is now outdated (e.g., now Asahi Linux has graphics acceleration even better than this). The commands listed are up-to-date.
I bought M1 MacBook Air. It is the fastest computer I have, and I have been a GNOME/GNU/Linux user for long time. It is obvious conclusion that I need practical Linux desktop environment on Apple Silicon.
| version: "3.7" | |
| services: | |
| drupal: | |
| depends_on: | |
| - db | |
| build: ./app | |
| restart: unless-stopped | |
| volumes: | |
| - code:/app # mount the mutagen volume | |
| environment: |