Inspired by dannyfritz/commit-message-emoji
See also gitmoji.
| Commit type | Emoji |
|---|---|
| Initial commit | 🎉 :tada: |
| Version tag | 🔖 :bookmark: |
| New feature | ✨ :sparkles: |
| Bugfix | 🐛 :bug: |
| # remap prefix from 'C-b' to 'C-a' | |
| unbind C-b | |
| set-option -g prefix C-a | |
| bind-key C-a send-prefix | |
| # start with window 1 (instead of 0) | |
| set -g base-index 1 | |
| # start with pane 1 | |
| set -g pane-base-index 1 |
| /** | |
| * Compare color difference in RGB | |
| * @param {Array} rgb1 First RGB color in array | |
| * @param {Array} rgb2 Second RGB color in array | |
| */ | |
| export function deltaRgb (rgb1, rgb2) { | |
| const [ r1, g1, b1 ] = rgb1, | |
| [ r2, g2, b2 ] = rgb2, | |
| drp2 = Math.pow(r1 - r2, 2), | |
| dgp2 = Math.pow(g1 - g2, 2), |
| /* | |
| * Handling Errors using async/await | |
| * Has to be used inside an async function | |
| */ | |
| try { | |
| const response = await axios.get('https://your.site/api/v1/bla/ble/bli'); | |
| // Success 🎉 | |
| console.log(response); | |
| } catch (error) { | |
| // Error 😨 |
Inspired by dannyfritz/commit-message-emoji
See also gitmoji.
| Commit type | Emoji |
|---|---|
| Initial commit | 🎉 :tada: |
| Version tag | 🔖 :bookmark: |
| New feature | ✨ :sparkles: |
| Bugfix | 🐛 :bug: |
| #!/usr/bin/env ruby | |
| # | |
| # Git commit-msg hook. | |
| # | |
| # If your branch name is in the form "story/DIO-1234/description", | |
| # automatically adds "DIO-1234/description: " to commit messages, unless they mention "DIO-1234" already. | |
| # | |
| # If your branch name is in the form "mario/1234-my-trello-card", | |
| # automatically adds "1234-my-trello-card: " to commit messages, unless they mention "1234" already. | |
| # |