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 | |
git push origin `git rev-parse --abbrev-ref HEAD` -f |
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 | |
if [ $# != 2 -o "$1" = "$2" ]; then | |
echo "Usage ${0##*/} branch1 branch2" | |
echo "" | |
echo "branch2の中に、branch1の最後のコミットが含まれているか(マージ済みか)を判定します。" | |
echo "以下はリモートのdevelopブランチにローカルのdevelopブランチの最後のコミットが含まれているかを判定する例です。" | |
echo "例) ${0##*/} develop origin/develop" | |
echo "" | |
echo "実行直後、\$? で判定結果が得られます。" |
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 | |
for dir in `find . -maxdepth 1 -type d`; do | |
if [ -d $dir/.git ]; then | |
pushd . > /dev/null 2>&1 | |
cd $dir | |
echo "======== ${dir##*/} ========" | |
$* | |
popd > /dev/null 2>&1 | |
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
/* <system section="theme" selected="bordeaux"> */ | |
@import "http://blog.hatena.ne.jp/css/theme/bordeaux/bordeaux.css"; | |
/* </system> */ | |
/* <system section="background" selected="bg17"> */ | |
body{ | |
background-color:#1a2637; background-image:url('/images/theme/backgrounds/theme17.png'); background-repeat:no-repeat; background-attachment:scroll; background-position:right top; | |
} | |
/* </system> */ | |
/* |
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
/** | |
* バックグラウンドにRPCする呼び出し側の実装(manifestのcontent_scriptsに記述して配備すること) | |
*/ | |
'use strict'; | |
(function(){ | |
function createAsyncRpcFunction(methodName) { | |
return async function() { | |
const req = { | |
method: methodName, |
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
{ | |
"title": "For Japanese (日本語環境向けの設定) by tkatochin", | |
"rules": [ | |
{ | |
"description": "コマンドキー(左右どちらでも)を単体で押したときに、英数・かなをトグルで切り替える。", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"conditions": [ | |
{ |
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
function hoge() { | |
// なんかかんか | |
var foo = ... | |
var bar = ... | |
if (foo < ...) { | |
return foo+bar; | |
} | |
var result = innerHoge(foo, bar); | |
var lastResult = ... // result使ってごにょごにょ | |
return lastResult; |
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 | |
export current_branch=`git rev-parse --abbrev-ref HEAD` | |
if [ 0 == `git status | grep -E "nothing to commit, working (directory|tree) clean" | wc -l` ]; then | |
echo "管理外の未コミットのファイルがあるので中止します。" | |
exit 1; | |
fi | |
abs_dirname() { |
OlderNewer