- copy the file
commit-msg
to.git/hooks/commit-msg
- make sure your delete the sample file
.git/hooks/commit-msg.sample
- Make commit msg executable.
chmod +x .git/hooks/commit-msg
- Edit
commit-msg
to better fit your development branch, commit regex and error message - Profit $$
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Description: | |
Map over an array of items: | |
- If the item meets the condition, apply the callback | |
- If the item does not meet the condition return the item without any transformation. | |
Example: | |
``` | |
const exampleArray = [1, 2, 9, "C", "B", "C"]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import qualified Data.ByteString.Lazy as L | |
import Data.Word (Word8) | |
data Stats = Stats | |
{ total :: Int | |
, count :: Int | |
} | |
initStats :: Stats | |
initStats = Stats 0 0 |
OlderNewer