Skip to content

Instantly share code, notes, and snippets.

@InabaByakko
InabaByakko / migrate_wp_as3cf_items.sql
Created October 2, 2023 09:24
Wordpress WP Offload Media の管理下へ既存メディアを移行するSQL
INSERT INTO wp_as3cf_items
(provider, region, bucket, path, original_path, is_private, source_type, source_id, source_path, original_source_path, extra_info, originator, is_verified )
SELECT
'aws', 'ap-northeast-1', 'kedama-prod-wp-s3',
CONCAT('wp-content/uploads/', meta_value),
CONCAT('wp-content/uploads/', meta_value),
0, 'media-library', post_id, meta_value, meta_value,
CONCAT(
'a:2:{s:7:"objects";a:2:{s:15:"__as3cf_primary";a:2:{s:11:"source_file";s:',
LENGTH(SUBSTRING_INDEX(meta_value, '/', -1)), ':"',
@InabaByakko
InabaByakko / MessageWindowPopup-GALV_TimedMessagePopups.js
Created July 13, 2021 13:10
トリアコンタンさんの吹き出しプラグインとGalv's Timed Message Popupsを併用するための競合解決パッチ
// 使用法:GALV_TimedMessagePopups.js の末尾 })(); より前に
// 以下のコードをコピーペーストする
// 以下のバージョンで動作確認済み
// MessageWindowPopup: 2.9.0
// GALV_TimedMessagePopups: 1.7
Window_GalvCaption.prototype.standardFontSize = function() {
var prm = PluginManager.parameters('MessageWindowPopup');
return Number(prm['FontSize'] || prm['フォントサイズ'] ||
Window_Base.prototype.standardFontSize.call(this));
@InabaByakko
InabaByakko / GALV_LayerGraphics.js
Created May 13, 2019 01:12
GALV_LayerGraphics.jsのZ座標にマイナスを導入して、遠景より下にレイヤーを挿入するパッチ
// 一番下の })(); より前に挿入してください
Spriteset_Map.prototype.createLayerGraphics = function() {
// Create Active Layers On Map
var mapGraphics = $gameMap.layerConfig(); // get object only for the map
for (var id in mapGraphics) {
// if layers sprite doesn't exist, make it.
@InabaByakko
InabaByakko / keybindings.json
Last active August 12, 2020 12:30
VSCode エイリアスを作るマクロ
// Place your key bindings in this file to overwrite the defaults
[
{
"key": "ctrl+shift+e",
"command": "ssmacro.macro", "args": {"path": "C:\\Users\\Inaba\\.vscode\\macros\\method_extend.json"}
}
]
@InabaByakko
InabaByakko / SAN_CircleGauge.js
Last active January 23, 2019 02:08
グラデーションの描画を、開始色と終端色の指定に変更
//=============================================================================
// SAN_CircleGauge.js
//=============================================================================
// Copyright (c) 2019 Sanshiro
// Released under the MIT license
// http://opensource.org/licenses/mit-license.php
//=============================================================================
/*:
* @plugindesc サークルゲージ 0.0.1
@InabaByakko
InabaByakko / FixSpriteFlashMethod.js
Last active July 31, 2019 02:52
重いスプライトのフラッシュ処理などをPIXI.jsのフィルタに置き換えてみる
(function(){
var canUseFilter = function() {
return Graphics.isWebGL();
};
// //////////////////////////////////////////////////////////
// ColorBlendFilter
// //////////////////////////////////////////////////////////
ColorBlendFilter = function () {
@InabaByakko
InabaByakko / FixSpriteFlashMethod.js
Created January 12, 2019 15:18
重いスプライトのフラッシュ処理などをPIXI.jsのフィルタに置き換えてみる
(function(){
var canUseFilter = function() {
return Graphics.isWebGL();
};
// //////////////////////////////////////////////////////////
// ColorBlendFilter
// //////////////////////////////////////////////////////////
ColorBlendFilter = function () {
@InabaByakko
InabaByakko / bb-webhook.php
Created December 18, 2016 09:30
http://ja.katzueno.com/2015/01/3390/ から頂いたものをさらに魔改造したデプロイスクリプト
<?php
/*
* GitHub & Bitbucket Deployment Sample Script
* Originally found at
* http://brandonsummers.name/blog/2012/02/10/using-bitbucket-for-automated-deployments/
* http://jonathannicol.com/blog/2013/11/19/automated-git-deployments-from-bitbucket/
*
* We assume you did a 'git clone -mirror' to your local repo directory,
* And then, 'GIT_WORK_TREE=[www directory] git checkout -f [your desired branch]'
*
@InabaByakko
InabaByakko / fixed_RX_T_Change_BattleBack(in_Battle).js
Last active October 12, 2016 03:11
TYPE74RX-T様のChange_BattleBack(in_Battle)を、最新のコアスクリプトのCanvasモードでも動作するように変更しました。
//=============================================================================
// Plugin_Name : RX_T_Change_BattleBack(in_Battle)
// File_Name : RX_T_Change_BattleBack(in_Battle).js
// Version : 1.02
// Copylight : 2015 TYPE74RX-T
//=============================================================================
//=============================================================================
/*: