This file contains 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
#!/usr/bin/env bb | |
(defn inc-ver | |
[ver mode] | |
(let [[major minor bugfix] (map #(Integer. %) (clojure.string/split ver #"\.")) | |
new-ver (case mode | |
:major [(inc major) 0 0] | |
:minor [major (inc minor) 0] | |
:bugfix [major minor (inc bugfix)])] | |
(clojure.string/join "." new-ver))) |
This file contains 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
brew install openjdk@11 | |
sudo ln -sfn $(brew --prefix)/opt/openjdk@11/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/openjdk-11.jdk |
This file contains 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
(defn select-keys-nested | |
[m addresses] | |
(reduce (fn [acc [k addr f]] | |
(assoc acc k ((or f identity) (if (sequential? addr) (get-in m addr) (get m addr))))) {} addresses)) |
This file contains 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
#!/usr/bin/env bash | |
sudo apt-get update | |
sudo apt-get upgrade | |
sudo apt-get install vim | |
sudo apt-get install tmux | |
sudo apt-get install git | |
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim | |
https://github.com/rdgd/dotfiles.git ~/dotfiles | |
mv ~/dotfiles/.vimrc ~/.vimrc |
This file contains 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
#!/usr/bin/env bash | |
RES=$(curl https://api.github.com/users/rdgd/repos | grep ssh_url | awk '{ print $2}') | |
STRIPPED=${RES//"\""} | |
IFS=', ' read -r -a array <<< $STRIPPED | |
for element in "${array[@]}" | |
do | |
git clone $element | |
done |
This file contains 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
input { | |
display: none; | |
} | |
.capsule { | |
width: 60px; | |
height: 30px; | |
cursor: pointer; | |
display: inline-block; | |
position: relative; |