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
<?xml version="1.0"?> | |
<root> | |
<item> | |
<name>One Handed Typing</name> | |
<item> | |
<name>Reverse QWERTY layout while Space key pressed.</name> | |
<identifier>onehand.reverse_qwerty</identifier> | |
<autogen>__KeyOverlaidModifier__ KeyCode::SPACE, KeyCode::VK_MODIFIER_EXTRA1, KeyCode::SPACE</autogen> | |
<!-- Reverse right keys --> |
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/sh | |
ISSUES_PATH=$1 | |
TMP_DIR="/tmp/issues" | |
function usage { | |
cat <<EOF | |
$(basename ${0}) version 0.0.1 | |
Usage: | |
$(basename ${0}) [issuesfilepath] |
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
[#{issue}] Subject line |
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/sh | |
issue=$(git rev-parse --abbrev-ref HEAD | sed -E 's/^([0-9]+).*/\1/') | |
# commit template の {issue}をブランチから抽出した番号に置換する | |
perl -i.bak -ne "s/{issue}/$issue/; print" "$1" |
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/sh | |
rubocop | |
if [ $? -eq 1 ]; then | |
exit 1 | |
fi | |
exit 0 |
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
a = readlines | |
a.each do |l| | |
a = l.split | |
if a.size < 2 | |
puts a[0] | |
else | |
s = a[0].split(",") | |
w = a[1] | |
b = 0 | |
s.each do |i| |
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
a = readlines | |
b = [] | |
a.each { |i| b << i.chomp.ljust(100).chars } | |
puts b.transpose.join.gsub(" ", "") |
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/sh | |
rubocop | |
if [ $? -eq 1 ]; then | |
exit 1 | |
fi | |
rspec | |
if [ $? -eq 1 ]; then | |
exit 1 |