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
/** | |
* バックグラウンドに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
/* <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
#!/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
#!/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 | |
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 |
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 |
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 |
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