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
#!/bin/bash | |
mkdir -p $HOME/.config/karabiner/assets/complex_modifications | |
cd $HOME/.config/karabiner/assets/complex_modifications/. | |
curl -OLs https://gist.githubusercontent.com/ha4gu/bcea8f4e5d8fa8064d5b949b5ce50343/raw/swaptab.json | |
curl -OLs https://gist.githubusercontent.com/ha4gu/bcea8f4e5d8fa8064d5b949b5ce50343/raw/terminal.json | |
curl -OLs https://gist.githubusercontent.com/ha4gu/bcea8f4e5d8fa8064d5b949b5ce50343/raw/other.json |
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
#!/bin/bash | |
# 引数で渡されるのが実行対象のファイル | |
target_file=$1 | |
if [ "$(echo ${target_file} | grep '.rb$')" ]; then | |
cat input | ruby ${target_file} | tee output; | |
else | |
echo "WARNING: It's not a ruby file."; | |
fi |
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
### ここから依存パッケージ定義パート | |
# NokogiriとChronicをgemでインストールしておくように。 | |
require 'open-uri' | |
require 'nokogiri' | |
require 'date' | |
require 'time' | |
require "active_support/all" | |
require 'chronic' |