View add-tkatochin-japanese.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
{ | |
"title": "For Japanese (日本語環境向けの設定) by tkatochin", | |
"rules": [ | |
{ | |
"description": "コマンドキー(左右どちらでも)を単体で押したときに、英数・かなをトグルで切り替える。", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"conditions": [ | |
{ |
View file0.txt
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; |
View backgroundCaller.js
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, |
View taputsukimasen.css
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> */ | |
/* |
View git-dir-all
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 |
View is_last_commit_in_other_branch.sh
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 "実行直後、\$? で判定結果が得られます。" |
View pf2gwtcnst.sh
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 | |
allargs=$@ | |
extendsType=com.google.gwt.i18n.client.Constants | |
if [[ $allargs == *"--extends="* ]]; then | |
echo " --extends=constants-class-name Constantsの拡張クラスを指定できます。指定がない場合はConstantsになります。" | |
extendsType=`echo $allargs | sed -e "s/.*--extends=\\([a-zA-Z0-9_.]*\\).*/\\1/g"` | |
allargs=`echo $allargs | sed -e "s/\\(.*\\)\\(--extends=[a-zA-Z0-9_.]*\\)\\(.*\\)/\\1\\3/g"` | |
fi |
View mvn
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 repo_path= | |
export ancestor=. | |
while [ "/" != "`cd $ancestor;pwd`" -a ! -d $ancestor/.m2/repository ]; do | |
export ancestor=../${ancestor} | |
done | |
if [ -d $ancestor/.m2/repository ]; then | |
export repo_path=`cd $ancestor/.m2/repository;pwd` | |
else |
View install_appengine-java-sdk.sh
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 [ -z $1 ]; then | |
echo パラメータに appengine sdkのバージョンを指定してね! | |
exit 1 | |
fi | |
DRYRUN= | |
if [ $1 = --dry-run ]; then | |
shift | |
DRYRUN=on | |
fi |
View working-summary.py
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/python | |
# -*- coding: utf-8 -*- | |
# こちら↓の成果のログから稼働開始〜終了時間を出力する | |
# http://qiita.com/edvakf@github/items/721afa8d2e69c556ba64 | |
import sys | |
import os | |
import glob | |
import datetime | |
from datetime import datetime, timedelta |
NewerOlder