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 | |
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() { |
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
// Thanks NeoCat http://d.hatena.ne.jp/NeoCat/20110206/1296934235 | |
window.xds = { | |
load: function(url, callback, onerror, retry, callback_key) { | |
var ifr = document.createElement("iframe"); | |
ifr.style.display = "none"; | |
document.body.appendChild(ifr); | |
var d = ifr.contentWindow.document; | |
var cnt = 0; | |
ifr[ifr.readyState/*IE*/ ? "onreadystatechange" : "onload"] = function() { | |
if (this.readyState && this.readyState != 'complete' || cnt++) return; |
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
// to be loaded AddToStringPrototypeStartsWithAndEndsWith.js | |
isMultiLogoned = function () { | |
tags = document.getElementsByTagName("a"); | |
for (var i = 0; i < tags.length; i++) { | |
if (tags[i].rel == "noreferrer") { | |
if (tags[i].href != "" && (tags[i].href.indexOf("&authUser=") || tags[i].href.indexOf("?authUser="))) { | |
return true; | |
} | |
} | |
} |
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
String.prototype.startsWith = function(prefix) { | |
return this.lastIndexOf(prefix, 0) == 0; | |
}; | |
String.prototype.endsWith = function(suffix) { | |
return this.lastIndexOf(suffix) == this.length-suffix.length; | |
} |
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 | |
echo mvn -P $1 $2 $3 $4 $5 -DdownloadSources=true -Dgwt.compile.skip=true eclipse:eclipse package | |
mvn -P $1 $2 $3 $4 $5 -DdownloadSources=true -Dgwt.compiler.skip=true eclipse:eclipse package | |
RETVAL=$? | |
if [ $RETVAL -eq 0 ] | |
then( | |
expect -c " | |
set timeout -1 | |
spawn appcfg.sh --email=$GAE_USER --passin backends update war | |
expect Password\ for\ $GAE_USER:\ ; send \"$GAE_PASS\r\" |
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" encoding="UTF-8"?> | |
<Module> | |
<ModulePrefs title="CanvasAndPrefSetSample" author="katochin"> | |
<Require feature="setprefs"/> | |
<Require feature="views"/> | |
</ModulePrefs> | |
<UserPref datatype="hidden" display_name="test" name="testPref" /> | |
<Content type="html" view="canvas"> | |
<![CDATA[<!DOCTYPE html> | |
<head> |
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 [ $# -ne 3 ]; then | |
echo "usage...: $0 gdata-version repository-url repository-id" | |
echo "ex.) $0 1.43.0 http://mylocal-nexus/content/repositories/thirdparty deploy-thirdparty" | |
exit 1 | |
fi | |
curl -O http://gdata-java-client.googlecode.com/files/gdata-src.java-$1.zip | |
unzip gdata-src.java-$1.zip | |
cd gdata/java/src | |
zip -r ../lib/sources.jar com |
NewerOlder