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
// 通常ポップアップ(720x405) | |
javascript:void(open('https://www.youtube.com/embed/'+document.URL.match(/^(https?:\/\/)?((www\.)?(youtube(-nocookie)?|youtube.googleapis)\.com.*(v\/|v=|vi=|vi\/|e\/|embed\/|user\/.*\/u\/\d+\/)|youtu\.be\/)([_0-9a-z-]+)/i)[7]+'?enablejsapi=1','_blank','width=720,height=405')) | |
// チャットポップアップ(300x400) | |
javascript:void(open('https://www.youtube.com/live_chat?v='+document.URL.match(/^(https?:\/\/)?((www\.)?(youtube(-nocookie)?|youtube.googleapis)\.com.*(v\/|v=|vi=|vi\/|e\/|embed\/|user\/.*\/u\/\d+\/)|youtu\.be\/)([_0-9a-z-]+)/i)[7],'_blank','width=300,height=400')) |
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
//文字列をアイテムへ変換 | |
public static ItemStack stringToItem(String dataSt){ | |
String[] datas = dataSt.split("@@"); | |
Material mt = Material.getMaterial(datas[0]); | |
int amount = 1; | |
int damage = 0; | |
try{ | |
amount = Integer.parseInt(datas[1]); |
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
import com.shampaggon.crackshot.CSDirector; | |
import com.shampaggon.crackshot.CSUtility; | |
import com.shampaggon.crackshot.events.WeaponFireRateEvent; | |
import com.shampaggon.crackshot.events.WeaponPreShootEvent; | |
import com.shampaggon.crackshot.events.WeaponPrepareShootEvent; | |
import org.bukkit.Bukkit; | |
import org.bukkit.EntityEffect; | |
import org.bukkit.Location; | |
import org.bukkit.Material; | |
import org.bukkit.block.Block; |
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
public class Pen{ | |
//タイプの種類を作成する | |
enum Type{ | |
pencil,auto_pencil | |
} | |
//タイプの変数 | |
Type pentype; | |
//残り回数の変数(intは数字の型) |
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/bash | |
# CHANGE THESE | |
auth_email="メールアドレス" | |
auth_key="CloudFlareアカウントPublicキー" # found in cloudflare account settings | |
zone_name="メインアドレス(blog.mkserver.jpならmkserver.jp)" | |
record_name="レコード名(blog.mkserver.jpならそのままかblog)" | |
# MAYBE CHANGE THESE | |
ip=$(curl -s http://ipv4.icanhazip.com) |