This file contains hidden or 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
package test; | |
public class BoxingTester { | |
public static void main(String[] args) { | |
boolean b1 = new Boolean(true); | |
boolean b2 = new Boolean(true); | |
System.out.println("b1 == b2 はどうなるの?:" + (b1 == b2)); |
This file contains hidden or 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
test.applescript を、 | |
osacompile -x -o test.app test.applescript | |
のようにあらかじめコンパイルしておき、test.app を配布している。 | |
OS X 10.8 ~ 10.11 では、 | |
osascript test.app | |
osascript test.app test | |
などのように実行して、引数がある時、無い時、いずれも想定通りに動作している。 | |
OS X 10.7 では、osascript test.app を実行すると、 |
This file contains hidden or 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
/** | |
* きこりプラグイン | |
* @author ucchy | |
*/ | |
public class WoodChopper extends JavaPlugin implements Listener { | |
private static final int MAX_CHECK_NUM = 100; | |
/** |
This file contains hidden or 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
// 問題1 | |
// 下記のコードを実行した時に、画面に表示される結果を、選択肢 A~D から一つ選べ。 | |
LocalDate date = LocalDate.of(2015, 9, 31); | |
date = date.plusDays(10); | |
System.out.println(date); | |
// A. 2015-10-10 | |
// B. 2015-10-11 | |
// C. 実行時にDateTimeExceptionが発生する | |
// D. コンパイルエラー |
This file contains hidden or 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
/* | |
* @author ucchy | |
* @license LGPLv3 | |
* @copyright Copyright ucchy 2015 | |
*/ | |
package org.bitbucket.ucchy.sw; | |
import java.util.HashMap; | |
import org.bukkit.Material; |
This file contains hidden or 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
/* | |
* @author ucchy | |
* @license LGPLv3 | |
* @copyright Copyright ucchy 2014 | |
*/ | |
package org.bitbucket.ucchy; | |
import org.bukkit.entity.EntityType; | |
import org.bukkit.event.EventHandler; | |
import org.bukkit.event.Listener; |
This file contains hidden or 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
// Ambient | |
AMBIENCE_CAVE, "ambient.cave.cave" | |
AMBIENCE_RAIN, "ambient.weather.rain" | |
AMBIENCE_THUNDER, "ambient.weather.thunder" | |
// Damage | |
HURT_FLESH, "game.neutral.hurt" | |
FALL_BIG, "game.neutral.hurt.fall.big" | |
FALL_SMALL, "game.neutral.hurt.fall.small" | |
// Dig Sounds | |
DIG_WOOL, "dig.cloth" |
This file contains hidden or 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
JNA: Callback com.tsoft_web.IntelliInput.RedirectWindowProc@46e2a773 threw the following exception: | |
com.sun.jna.LastErrorException: [50] この要求はサポートされていません。 | |
at com.sun.jna.Native.invokeLong(Native Method) | |
at com.sun.jna.Function.invoke(Function.java:386) | |
at com.sun.jna.Function.invoke(Function.java:315) | |
at com.sun.jna.Library$Handler.invoke(Library.java:212) | |
at com.sun.proxy.$Proxy22.CallWindowProc(Unknown Source) | |
at com.tsoft_web.IntelliInput.RedirectWindowProc.callback(RedirectWindowProc.java:98) | |
at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) |
This file contains hidden or 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
public class TestPlugin extends JavaPlugin implements Listener { | |
/** | |
* @see org.bukkit.plugin.java.JavaPlugin#onEnable() | |
*/ | |
@Override | |
public void onEnable() { | |
getConfig().addDefault("RED_1.world", "world"); | |
getConfig().addDefault("RED_1.x", 0); |
This file contains hidden or 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
# ${project.name} v${project.version} | |
# @author ucchy | |
# @license LGPLv3 | |
# @copyright Copyright ucchy 2014 | |
# : の左側が正規表現キーワード、右側がレスポンス内容です。 | |
# レスポンスにはキーワードが使用可能です。 | |
# %player -> プレイヤー名 | |
# %time -> 現在の時間 | |
# %date -> 今日の日付 |
NewerOlder