Skip to content

Commit

Permalink
Improve
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Wirth committed Dec 2, 2019
1 parent 6401c09 commit eea6231
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 19 deletions.
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@scalab.app
email = jan[email protected]
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
Expand Down
1 change: 1 addition & 0 deletions kakrc
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ hook global BufCreate .vue %{ set buffer filetype xml }
hook global BufCreate .*.elm %{ set buffer filetype haskell }
hook global BufCreate .*.purs %{ set buffer filetype haskell }
hook global BufCreate .*.(es6|tsx?) %{ set buffer filetype javascript }
# hook global BufCreate .*.js %{ rename-buffer 💩}

define-command trim-whitespaces -docstring "Remove trailing whitespace from every line" %{
try %{
Expand Down
20 changes: 2 additions & 18 deletions zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,10 @@ function gcol {
git checkout @{-1}
}

alias notes="kak ~/notes"

alias uglycopy="uglifyjs | pbcopy"
alias tile="chunkc tiling::desktop --layout bsp"


# source ~/dotfiles/pomodoro/pomodoro.sh
Expand All @@ -205,21 +207,3 @@ 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 eea6231

Please sign in to comment.