Skip to content

Instantly share code, notes, and snippets.

View jakubhomoly's full-sized avatar
🚀
Sky is the limit

Jakub Homoly jakubhomoly

🚀
Sky is the limit
View GitHub Profile
@rudowastaken
rudowastaken / .tmux.conf
Created May 23, 2018 12:52
.tmux.conf
# 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
@ryancat
ryancat / colorDiffUtil.js
Created May 9, 2018 06:07
Color difference in RGB and LAB
/**
* 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),
@fgilio
fgilio / axios-catch-error.js
Last active April 11, 2024 19:02
Catch request errors with Axios
/*
* 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 😨
@parmentf
parmentf / GitCommitEmoji.md
Last active July 4, 2024 10:57
Git Commit message Emoji
@kevin-smets
kevin-smets / iterm2-solarized.md
Last active July 4, 2024 23:40
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k

@marioizquierdo
marioizquierdo / git-commit-msg-jira-trello.rb
Last active July 3, 2018 11:24
git hook commit message for JIRA and Trello branches
#!/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.
#