{
"parent": "item/handheld",
"textures": {
"layer0": "items/gold_axe"
},
"overrides": [
{ "predicate": { "damage": 0.0 }, "model": "item/diamond_sword" },
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
try { | |
Constructor<?> cs = PluginCommand.class.getDeclaredConstructor(String.class, Plugin.class); | |
cs.setAccessible(true); | |
PluginCommand cmd = (PluginCommand)cs.newInstance("setblock", this); | |
cmd.setDescription("This is command description."); | |
cmd.setUsage("/<command> <x> <y> <z> <TileName> [dataValue] [dataTag]"); | |
cmd.setPermission("minecraft.command.setblock"); | |
cmd.setPermissionMessage("I'm sorry, but you do not have permission to perform this command. Please contact the server administrators if you believe that this is in error."); | |
cmd.setExecutor(new CommandExecutor() { | |
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
Location getTouchLocation(PlayerInteractEvent event) { | |
Action action = event.getAction(); | |
if(!(action.equals(Action.LEFT_CLICK_BLOCK) || action.equals(Action.RIGHT_CLICK_BLOCK))) return null; | |
Location O = event.getPlayer().getEyeLocation(); | |
Block block = event.getClickedBlock(); | |
Location P = block.getLocation().subtract(O); | |
double Yaw = (double)O.getYaw(); | |
if(Yaw > 0) Yaw -= 360; | |
double AngY = Math.toRadians(Math.abs(Yaw)); | |
double AngP = Math.toRadians(O.getPitch()*-1d); |
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
// Amazon で使った金額の合計を出す奴 | |
// | |
// 使い方: | |
// 1. 全部コピーする (右上の Raw をクリックした先でやるのが楽) | |
// 2. Amazon の注文履歴ページ ( https://www.amazon.co.jp/gp/css/order-history/ ) を開く | |
// 3. F12 または 右クリ→要素の検証 とかで出てくる開発者ツールのコンソール (JavaScript REPL) にペースト | |
// 4. エンターで実行 | |
// (Firefox はなんか allow pasting とタイプしろみたいなことを言われるので従う) | |
// 5. しばらく待つと alert で合計金額を表示 | |
// |
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
function csv2Array(filePath) { //csvファイルノ相対パスor絶対パス | |
var csvData = new Array(); | |
var data = new XMLHttpRequest(); | |
data.open("GET", filePath, false); //true:非同期,false:同期 | |
data.send(null); | |
var LF = String.fromCharCode(10); //改行コード | |
var lines = data.responseText.split(LF); | |
for (var i = 0; i < lines.length;++i) { | |
var cells = lines[i].split(","); |
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
upstream tunnel { | |
server 127.0.0.1:3000; | |
} | |
server { | |
listen 80; | |
server_name dev.codeplane.com br.dev.codeplane.com; | |
location / { | |
proxy_set_header X-Real-IP $remote_addr; |