Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Wirth committed Nov 1, 2019
1 parent 63bcb6a commit 6401c09
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
2 changes: 1 addition & 1 deletion gitconfig
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
ignorecase = false
[user]
name = Jan Wirth
email = jan[email protected]
email = jan@scalab.app
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
Expand Down
1 change: 1 addition & 0 deletions install.conf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
~/.local/bin/inc: increment.sh
~/.local/bin/dec: decrement.sh
~/.local/bin/toggleGit: toggleGit.sh
~/.local/bin/decgen: ../decgen/cli.js
~/Library/Preferences/com.apple.Terminal.plist:
force: true
path: com.apple.Terminal.plist
Expand Down
18 changes: 18 additions & 0 deletions zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -205,3 +205,21 @@ if [ -f '/Users/wirthjan/google-cloud-sdk/path.zsh.inc' ]; then . '/Users/wirthj

# The next line enables shell command completion for gcloud.
if [ -f '/Users/wirthjan/google-cloud-sdk/completion.zsh.inc' ]; then . '/Users/wirthjan/google-cloud-sdk/completion.zsh.inc'; fi


#!/usr/bin/env bash

hex2rgb() {
hex=$(echo "${1^^}" | sed 's/#//g')

a=$(echo $hex | cut -c-2)
b=$(echo $hex | cut -c3-4)
c=$(echo $hex | cut -c5-6)

r=$(echo "ibase=16; $a" | bc)
g=$(echo "ibase=16; $b" | bc)
b=$(echo "ibase=16; $c" | bc)

echo ${1^^}
echo $r $g $b
}

0 comments on commit 6401c09

Please sign in to comment.