Skip to content

Instantly share code, notes, and snippets.

View cloudyluna's full-sized avatar
🏳️‍⚧️

Momo cloudyluna

🏳️‍⚧️
View GitHub Profile
@cloudyluna
cloudyluna / flake.lock
Created May 26, 2025 09:27
nix flake to build widelands master (f0f41b8). I used the command: `./compile.sh -j 2 -a -m -s` to build it.
{
"nodes": {
"flake-utils": {
"inputs": {
"systems": "systems"
},
"locked": {
"lastModified": 1731533236,
"narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",
"owner": "numtide",
First, we meow.
Second, we eep.
Third, we meow.
And finally, we eep.
@cloudyluna
cloudyluna / arrow2.hs
Created October 29, 2024 03:45
arrow2 - I think I kinda understand...but uh....&&& you're scary
{- cabal:
build-depends: base
default-language: GHC2021
-}
import Control.Arrow (Arrow, first, second, arr, (>>>))
import Control.Category (Category)
import qualified Control.Category
import Control.Monad
newtype SF i o = SF { runSF :: (i -> o) }
@cloudyluna
cloudyluna / GitCommitBestPractices.md
Created September 26, 2024 10:42 — forked from luismts/GitCommitBestPractices.md
Git Tips and Git Commit Best Practices

Git Commit Best Practices

Basic Rules

Commit Related Changes

A commit should be a wrapper for related changes. For example, fixing two different bugs should produce two separate commits. Small commits make it easier for other developers to understand the changes and roll them back if something went wrong. With tools like the staging area and the ability to stage only parts of a file, Git makes it easy to create very granular commits.

Commit Often

Committing often keeps your commits small and, again, helps you commit only related changes. Moreover, it allows you to share your code more frequently with others. That way it‘s easier for everyone to integrate changes regularly and avoid having merge conflicts. Having large commits and sharing them infrequently, in contrast, makes it hard to solve conflicts.